Generate Warning when using default key.

This commit is contained in:
Matt Corallo 2011-07-14 03:28:31 +02:00
parent 0d7b28e52e
commit cee69980b0

View 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;