[wallet] remove unused GetScriptForMining
This commit is contained in:
parent
8bb3e4c487
commit
07cae5287c
2 changed files with 0 additions and 13 deletions
|
@ -3819,17 +3819,6 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
|
|
||||||
{
|
|
||||||
std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);
|
|
||||||
CPubKey pubkey;
|
|
||||||
if (!rKey->GetReservedKey(pubkey))
|
|
||||||
return;
|
|
||||||
|
|
||||||
script = rKey;
|
|
||||||
script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CWallet::LockCoin(const COutPoint& output)
|
void CWallet::LockCoin(const COutPoint& output)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // setLockedCoins
|
AssertLockHeld(cs_wallet); // setLockedCoins
|
||||||
|
|
|
@ -1065,8 +1065,6 @@ public:
|
||||||
|
|
||||||
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||||
|
|
||||||
void GetScriptForMining(std::shared_ptr<CReserveScript> &script);
|
|
||||||
|
|
||||||
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
|
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // set{Ex,In}ternalKeyPool
|
AssertLockHeld(cs_wallet); // set{Ex,In}ternalKeyPool
|
||||||
|
|
Loading…
Reference in a new issue