remove CWallet::AddReserveKey which is never used
This commit is contained in:
parent
9d97e83bf6
commit
0e31e5631c
2 changed files with 0 additions and 16 deletions
|
@ -1671,21 +1671,6 @@ void CWallet::ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t CWallet::AddReserveKey(const CKeyPool& keypool)
|
|
||||||
{
|
|
||||||
{
|
|
||||||
LOCK2(cs_main, cs_wallet);
|
|
||||||
CWalletDB walletdb(strWalletFile);
|
|
||||||
|
|
||||||
int64_t nIndex = 1 + *(--setKeyPool.end());
|
|
||||||
if (!walletdb.WritePool(nIndex, keypool))
|
|
||||||
throw runtime_error("AddReserveKey() : writing added key failed");
|
|
||||||
setKeyPool.insert(nIndex);
|
|
||||||
return nIndex;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CWallet::KeepKey(int64_t nIndex)
|
void CWallet::KeepKey(int64_t nIndex)
|
||||||
{
|
{
|
||||||
// Remove from key pool
|
// Remove from key pool
|
||||||
|
|
|
@ -263,7 +263,6 @@ public:
|
||||||
|
|
||||||
bool NewKeyPool();
|
bool NewKeyPool();
|
||||||
bool TopUpKeyPool(unsigned int kpSize = 0);
|
bool TopUpKeyPool(unsigned int kpSize = 0);
|
||||||
int64_t AddReserveKey(const CKeyPool& keypool);
|
|
||||||
void ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool);
|
void ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool);
|
||||||
void KeepKey(int64_t nIndex);
|
void KeepKey(int64_t nIndex);
|
||||||
void ReturnKey(int64_t nIndex);
|
void ReturnKey(int64_t nIndex);
|
||||||
|
|
Loading…
Reference in a new issue