Browse Source

Merge pull request #5508

146c0a7 Add RandAddSeedPerfmon to MakeNewKey (21E14)
0.13
Pieter Wuille 10 years ago
parent
commit
9a5cabf3da
No known key found for this signature in database
GPG Key ID: 57896D2FF8F0B657
  1. 1
      src/key.cpp
  2. 1
      src/wallet.cpp

1
src/key.cpp

@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) {
} }
void CKey::MakeNewKey(bool fCompressedIn) { void CKey::MakeNewKey(bool fCompressedIn) {
RandAddSeedPerfmon();
do { do {
GetRandBytes(vch, sizeof(vch)); GetRandBytes(vch, sizeof(vch));
} while (!Check(vch)); } while (!Check(vch));

1
src/wallet.cpp

@ -71,7 +71,6 @@ CPubKey CWallet::GenerateNewKey()
AssertLockHeld(cs_wallet); // mapKeyMetadata AssertLockHeld(cs_wallet); // mapKeyMetadata
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
RandAddSeedPerfmon();
CKey secret; CKey secret;
secret.MakeNewKey(fCompressed); secret.MakeNewKey(fCompressed);

Loading…
Cancel
Save