mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge pull request #5508
146c0a7
Add RandAddSeedPerfmon to MakeNewKey (21E14)
This commit is contained in:
commit
9a5cabf3da
@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) {
|
||||
}
|
||||
|
||||
void CKey::MakeNewKey(bool fCompressedIn) {
|
||||
RandAddSeedPerfmon();
|
||||
do {
|
||||
GetRandBytes(vch, sizeof(vch));
|
||||
} while (!Check(vch));
|
||||
|
@ -71,7 +71,6 @@ CPubKey CWallet::GenerateNewKey()
|
||||
AssertLockHeld(cs_wallet); // mapKeyMetadata
|
||||
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
|
||||
|
||||
RandAddSeedPerfmon();
|
||||
CKey secret;
|
||||
secret.MakeNewKey(fCompressed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user