| 4914 | } |
| 4915 | |
| 4916 | void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script) |
| 4917 | { |
| 4918 | std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this); |
| 4919 | CPubKey pubkey; |
| 4920 | if (!rKey->GetReservedKey(pubkey, true)) |
| 4921 | return; |
| 4922 | |
| 4923 | script = std::make_shared<CReserveScript>(); |
| 4924 | script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
| 4925 | } |
no test coverage detected