Merge pull request #410 from TheBlueMatt/master
authorGavin Andresen <gavinandresen@gmail.com>
Thu, 14 Jul 2011 01:29:55 +0000 (18:29 -0700)
committerGavin Andresen <gavinandresen@gmail.com>
Thu, 14 Jul 2011 01:29:55 +0000 (18:29 -0700)
Generate Warning when using default key.

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;