Fix name of menmonic entropy length constant.

This commit is contained in:
Kris Nuttycombe 2021-11-03 16:50:57 -06:00
parent a67fb00d0a
commit ea8e9438af
2 changed files with 3 additions and 3 deletions

View File

@ -2306,7 +2306,7 @@ void CWallet::GenerateNewSeed(Language language)
{
LOCK(cs_wallet);
auto seed = MnemonicSeed::Random(BIP44CoinType(), language, HD_WALLET_SEED_LENGTH);
auto seed = MnemonicSeed::Random(BIP44CoinType(), language, WALLET_MNEMONIC_ENTROPY_LENGTH);
int64_t nCreationTime = GetTime();

View File

@ -71,8 +71,8 @@ static const bool DEFAULT_WALLETBROADCAST = true;
// unless there is some exceptional network disruption.
static const unsigned int WITNESS_CACHE_SIZE = MAX_REORG_LENGTH + 1;
//! Size of HD seed in bytes
static const size_t HD_WALLET_SEED_LENGTH = 32;
//! Amount of entropy used in generation of the mnemonic seed, in bytes.
static const size_t WALLET_MNEMONIC_ENTROPY_LENGTH = 32;
extern const char * DEFAULT_WALLET_DAT;