detach wallet from miner
This commit is contained in:
@@ -2583,6 +2583,17 @@ 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;
|
||||
}
|
||||
|
||||
void CWallet::LockCoin(COutPoint& output)
|
||||
{
|
||||
AssertLockHeld(cs_wallet); // setLockedCoins
|
||||
|
||||
@@ -680,6 +680,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void GetScriptForMining(CScript &script);
|
||||
void UpdateRequestCount(const CBlock& block)
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
mapRequestCount[block.GetHash()] = 0;
|
||||
};
|
||||
|
||||
unsigned int GetKeyPoolSize()
|
||||
{
|
||||
AssertLockHeld(cs_wallet); // setKeyPool
|
||||
|
||||
Reference in New Issue
Block a user