fix GetScriptForMining() CReserveKey::keepKey() issue

This commit is contained in:
Jonas Schnelli 2015-06-24 21:51:47 +02:00 committed by Jack Grigg
parent b2993bc5d4
commit 38da0d16b1
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 1 additions and 2 deletions

View File

@ -4046,12 +4046,11 @@ void CWallet::GetScriptForMining(CScript &script)
}
CReserveKey reservekey(this);
reservekey.KeepKey();
CPubKey pubkey;
if (!reservekey.GetReservedKey(pubkey))
return;
script = CScript() << OP_DUP << OP_HASH160 << ToByteVector(pubkey.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG;
reservekey.KeepKey();
}
void CWallet::LockCoin(COutPoint& output)