Skip to content

Commit

Permalink
Merge pull request bitcoin#410 from TheBlueMatt/master
Browse files Browse the repository at this point in the history
Generate Warning when using default key.
  • Loading branch information
gavinandresen committed Jul 14, 2011
2 parents 60d2f86 + cee6998 commit 3fd18fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fd18fa

Please sign in to comment.