mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge pull request #410 from TheBlueMatt/master
Generate Warning when using default key.
This commit is contained in:
commit
3fd18faaf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user