Skip to content

Commit 146c0a7

Browse files
author
21E14
committed
Add RandAddSeedPerfmon to MakeNewKey
1 parent 4444b87 commit 146c0a7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/key.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) {
3434
}
3535

3636
void CKey::MakeNewKey(bool fCompressedIn) {
37+
RandAddSeedPerfmon();
3738
do {
3839
GetRandBytes(vch, sizeof(vch));
3940
} while (!Check(vch));

src/wallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ CPubKey CWallet::GenerateNewKey()
7070
AssertLockHeld(cs_wallet); // mapKeyMetadata
7171
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
7272

73-
RandAddSeedPerfmon();
7473
CKey secret;
7574
secret.MakeNewKey(fCompressed);
7675

0 commit comments

Comments
 (0)