diff options
| author | Micael Malta <[email protected]> | 2021-08-23 21:00:09 +0200 |
|---|---|---|
| committer | Micael Malta <[email protected]> | 2021-08-24 01:13:17 +0200 |
| commit | 82ed8e0cc5a6de134b51fb0b375237bc04dbb62e (patch) | |
| tree | bff43c8d3a40fd4f56da3960f088d5d962ab63e0 /src | |
| parent | Merge pull request #2487 from chromatic/fix-compiler-warnings (diff) | |
| download | discoin-82ed8e0cc5a6de134b51fb0b375237bc04dbb62e.tar.xz discoin-82ed8e0cc5a6de134b51fb0b375237bc04dbb62e.zip | |
Change key derivation path to be correct for Dogecoin
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d0fcdfdef..a39629bdd 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -150,7 +150,7 @@ void CWallet::DeriveNewChildKey(CKeyMetadata& metadata, CKey& secret) // childIndex | BIP32_HARDENED_KEY_LIMIT = derive childIndex in hardened child-index-range // example: 1 | BIP32_HARDENED_KEY_LIMIT == 0x80000001 == 2147483649 externalChainChildKey.Derive(childKey, hdChain.nExternalChainCounter | BIP32_HARDENED_KEY_LIMIT); - metadata.hdKeypath = "m/0'/0'/" + std::to_string(hdChain.nExternalChainCounter) + "'"; + metadata.hdKeypath = "m/0'/3'/" + std::to_string(hdChain.nExternalChainCounter) + "'"; metadata.hdMasterKeyID = hdChain.masterKeyID; // increment childkey index hdChain.nExternalChainCounter++; |