mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 13:04:17 +00:00
Generate Warning when using default key.
This commit is contained in:
parent
0d7b28e52e
commit
cee69980b0
@ -1323,8 +1323,11 @@ vector<unsigned char> CReserveKey::GetReservedKey()
|
|||||||
if (nIndex != -1)
|
if (nIndex != -1)
|
||||||
vchPubKey = keypool.vchPubKey;
|
vchPubKey = keypool.vchPubKey;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
printf("CReserveKey::GetReservedKey(): Warning: using default key instead of a new key, top up your keypool.");
|
||||||
vchPubKey = vchDefaultKey;
|
vchPubKey = vchDefaultKey;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
assert(!vchPubKey.empty());
|
assert(!vchPubKey.empty());
|
||||||
return vchPubKey;
|
return vchPubKey;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user