Skip to content

Commit

Permalink
Remove unused AddKeypoolPubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Apr 5, 2019
1 parent ed4a584 commit 2811f37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/wallet/wallet.cpp
Expand Up @@ -3457,13 +3457,6 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
return true;
}

void CWallet::AddKeypoolPubkey(const CPubKey& pubkey, const bool internal)
{
WalletBatch batch(*database);
AddKeypoolPubkeyWithDB(pubkey, internal, batch);
NotifyCanGetAddressesChanged();
}

void CWallet::AddKeypoolPubkeyWithDB(const CPubKey& pubkey, const bool internal, WalletBatch& batch)
{
LOCK(cs_wallet);
Expand Down
1 change: 0 additions & 1 deletion src/wallet/wallet.h
Expand Up @@ -1015,7 +1015,6 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
bool NewKeyPool();
size_t KeypoolCountExternalKeys() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
bool TopUpKeyPool(unsigned int kpSize = 0);
void AddKeypoolPubkey(const CPubKey& pubkey, const bool internal);

/**
* Reserves a key from the keypool and sets nIndex to its index
Expand Down

0 comments on commit 2811f37

Please sign in to comment.