Generate Warning when using default key.
authorMatt Corallo <matt@bluematt.me>
Thu, 14 Jul 2011 01:28:31 +0000 (03:28 +0200)
committerMatt Corallo <matt@bluematt.me>
Thu, 14 Jul 2011 01:28:31 +0000 (03:28 +0200)
src/wallet.cpp

index 5f7cddf..60a00e9 100644 (file)
@@ -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;