aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMicael Malta <[email protected]>2021-08-23 21:00:09 +0200
committerMicael Malta <[email protected]>2021-08-24 01:13:17 +0200
commit82ed8e0cc5a6de134b51fb0b375237bc04dbb62e (patch)
treebff43c8d3a40fd4f56da3960f088d5d962ab63e0 /src
parentMerge pull request #2487 from chromatic/fix-compiler-warnings (diff)
downloaddiscoin-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.cpp2
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++;