aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-07-13 18:29:55 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-07-13 18:29:55 -0700
commit3fd18faaf643adf870501b9d4a53170f72bdee06 (patch)
tree6a20761c3e1223aad9d73bd54dd95e6b41f04be1
parent60d2f8662c48d3456e41b8e2b118c20e2ea43ace (diff)
parentcee69980b0ebe05b8327bf1d6cafb12a8f7f718c (diff)
Merge pull request #410 from TheBlueMatt/master
Generate Warning when using default key.
-rw-r--r--src/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 5f7cddf57e..60a00e9208 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1323,7 +1323,10 @@ vector<unsigned char> CReserveKey::GetReservedKey()
if (nIndex != -1)
vchPubKey = keypool.vchPubKey;
else
+ {
+ printf("CReserveKey::GetReservedKey(): Warning: using default key instead of a new key, top up your keypool.");
vchPubKey = vchDefaultKey;
+ }
}
assert(!vchPubKey.empty());
return vchPubKey;