| 3736 | } |
| 3737 | |
| 3738 | void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script) |
| 3739 | { |
| 3740 | std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this); |
| 3741 | CPubKey pubkey; |
| 3742 | if (!rKey->GetReservedKey(pubkey)) |
| 3743 | return; |
| 3744 | |
| 3745 | script = rKey; |
| 3746 | script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
| 3747 | } |
| 3748 | |
| 3749 | void CWallet::LockCoin(const COutPoint& output) |
| 3750 | { |
no test coverage detected