CWallet::TopUpKeyPool() takes optional pool size argument

Also, GetKeyPoolSize() now returns an accurate type, unsigned int.
This commit is contained in:
Jeff Garzik
2013-06-25 16:07:29 -04:00
parent 481d899794
commit 13dd2d090e
3 changed files with 10 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ public:
std::string SendMoneyToDestination(const CTxDestination &address, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);
bool NewKeyPool();
bool TopUpKeyPool();
bool TopUpKeyPool(unsigned int kpSize = 0);
int64 AddReserveKey(const CKeyPool& keypool);
void ReserveKeyFromKeyPool(int64& nIndex, CKeyPool& keypool);
void KeepKey(int64 nIndex);
@@ -292,7 +292,7 @@ public:
}
}
int GetKeyPoolSize()
unsigned int GetKeyPoolSize()
{
return setKeyPool.size();
}