Skip to content

Commit 07cae52

Browse files
committed
[wallet] remove unused GetScriptForMining
1 parent 8bb3e4c commit 07cae52

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3819,17 +3819,6 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
38193819
}
38203820
}
38213821

3822-
void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
3823-
{
3824-
std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);
3825-
CPubKey pubkey;
3826-
if (!rKey->GetReservedKey(pubkey))
3827-
return;
3828-
3829-
script = rKey;
3830-
script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
3831-
}
3832-
38333822
void CWallet::LockCoin(const COutPoint& output)
38343823
{
38353824
AssertLockHeld(cs_wallet); // setLockedCoins

src/wallet/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,6 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
10651065

10661066
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
10671067

1068-
void GetScriptForMining(std::shared_ptr<CReserveScript> &script);
1069-
10701068
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
10711069
{
10721070
AssertLockHeld(cs_wallet); // set{Ex,In}ternalKeyPool

0 commit comments

Comments
 (0)