|
|
@ -2586,12 +2586,11 @@ void CWallet::UpdatedTransaction(const uint256 &hashTx) |
|
|
|
void CWallet::GetScriptForMining(CScript &script) |
|
|
|
void CWallet::GetScriptForMining(CScript &script) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CReserveKey reservekey(this); |
|
|
|
CReserveKey reservekey(this); |
|
|
|
reservekey.KeepKey(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CPubKey pubkey; |
|
|
|
CPubKey pubkey; |
|
|
|
if (!reservekey.GetReservedKey(pubkey)) |
|
|
|
if (!reservekey.GetReservedKey(pubkey)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
script = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
|
|
|
script = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
|
|
|
|
|
|
|
reservekey.KeepKey(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CWallet::LockCoin(COutPoint& output) |
|
|
|
void CWallet::LockCoin(COutPoint& output) |
|
|
|