Skip to content

Commit 8946b23

Browse files
MarcoFalkevijaydasmp
authored andcommitted
(Partial) Merge bitcoin#15492: [rpc] remove deprecated generate method
07cae52 [wallet] remove unused GetScriptForMining (Sjors Provoost) 8bb3e4c [rpc] remove deprecated generate method (Sjors Provoost) Pull request description: As announced in v0.18, the wallet generate rpc method is deprecated and will be fully removed in v0.19. Clients should transition to using the node rpc method `generatetoaddress`. Tree-SHA512: 9e5e913b59f3e18440b2b7b356124c7b87ad19f81a1ab6ada06a6c396b84e734895465f569296f1ba8c12abf74863bab5fd77765c9e806c239713aa83a59485f
1 parent 005e729 commit 8946b23

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
@@ -4600,17 +4600,6 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
46004600
}
46014601
}
46024602

4603-
void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
4604-
{
4605-
std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);
4606-
CPubKey pubkey;
4607-
if (!rKey->GetReservedKey(pubkey, false))
4608-
return;
4609-
4610-
script = rKey;
4611-
script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
4612-
}
4613-
46144603
void CWallet::LockCoin(const COutPoint& output)
46154604
{
46164605
AssertLockHeld(cs_wallet); // setLockedCoins

src/wallet/wallet.h

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

11491149
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
11501150

1151-
void GetScriptForMining(std::shared_ptr<CReserveScript> &script);
1152-
11531151
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
11541152
{
11551153
AssertLockHeld(cs_wallet); // set{Ex,In}ternalKeyPool

0 commit comments

Comments
 (0)