aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-06-25 16:07:29 -0400
committerJeff Garzik <jgarzik@bitpay.com>2013-06-25 16:07:29 -0400
commit13dd2d090e1acf8895854cedea18e38a6278c7ea (patch)
tree6aab366e467151d693ea9d1a90110c86e5f08058 /src/wallet.h
parent481d89979457d69da07edd99fba451fd42a47f5c (diff)
downloadbitcoin-13dd2d090e1acf8895854cedea18e38a6278c7ea.tar.xz
CWallet::TopUpKeyPool() takes optional pool size argument
Also, GetKeyPoolSize() now returns an accurate type, unsigned int.
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.h b/src/wallet.h
index 36b3608fb0..cd9bf54cc5 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -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();
}