aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-07-14 03:28:31 +0200
committerMatt Corallo <matt@bluematt.me>2011-07-14 03:28:31 +0200
commitcee69980b0ebe05b8327bf1d6cafb12a8f7f718c (patch)
tree6a20761c3e1223aad9d73bd54dd95e6b41f04be1 /src
parent0d7b28e52ea5302ce6aa17399a0027e33168c372 (diff)
Generate Warning when using default key.
Diffstat (limited to 'src')
-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;