mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
fix GetScriptForMining() CReserveKey::keepKey() issue
This commit is contained in:
@@ -2586,12 +2586,11 @@ void CWallet::UpdatedTransaction(const uint256 &hashTx)
|
||||
void CWallet::GetScriptForMining(CScript &script)
|
||||
{
|
||||
CReserveKey reservekey(this);
|
||||
reservekey.KeepKey();
|
||||
|
||||
CPubKey pubkey;
|
||||
if (!reservekey.GetReservedKey(pubkey))
|
||||
return;
|
||||
script = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
|
||||
reservekey.KeepKey();
|
||||
}
|
||||
|
||||
void CWallet::LockCoin(COutPoint& output)
|
||||
|
||||
Reference in New Issue
Block a user