aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2011-07-14 03:28:31 +0200
committerMatt Corallo <[email protected]>2011-07-14 03:28:31 +0200
commitcee69980b0ebe05b8327bf1d6cafb12a8f7f718c (patch)
tree6a20761c3e1223aad9d73bd54dd95e6b41f04be1 /src/wallet.cpp
parentFix crashes when a wallet is locked and GetReservedKey() is called (diff)
downloaddiscoin-cee69980b0ebe05b8327bf1d6cafb12a8f7f718c.tar.xz
discoin-cee69980b0ebe05b8327bf1d6cafb12a8f7f718c.zip
Generate Warning when using default key.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 5f7cddf57..60a00e920 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;