Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 635006 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +7 lines)
Line  Link Here
0
-- bitcoin-03422e564b552c1d3c16ae854f8471f7cb39e25d/src/wallet/wallet.cpp
0
++ bitcoin-0.13.1-cxx11/src/wallet/wallet.cpp
Lines 134-140 CPubKey CWallet::GenerateNewKey() Link Here
134
            // childIndex | BIP32_HARDENED_KEY_LIMIT = derive childIndex in hardened child-index-range
134
            // childIndex | BIP32_HARDENED_KEY_LIMIT = derive childIndex in hardened child-index-range
135
            // example: 1 | BIP32_HARDENED_KEY_LIMIT == 0x80000001 == 2147483649
135
            // example: 1 | BIP32_HARDENED_KEY_LIMIT == 0x80000001 == 2147483649
136
            externalChainChildKey.Derive(childKey, hdChain.nExternalChainCounter | BIP32_HARDENED_KEY_LIMIT);
136
            externalChainChildKey.Derive(childKey, hdChain.nExternalChainCounter | BIP32_HARDENED_KEY_LIMIT);
137
#if defined(__GNUG__) && __GNUG__ < 5
138
            char hdkp[9+10+1];
139
	    std::sprintf(hdkp, "m/0'/0'/%i'", hdChain.nExternalChainCounter);
140
            metadata.hdKeypath     = hdkp;
141
#else
137
            metadata.hdKeypath     = "m/0'/0'/"+std::to_string(hdChain.nExternalChainCounter)+"'";
142
            metadata.hdKeypath     = "m/0'/0'/"+std::to_string(hdChain.nExternalChainCounter)+"'";
143
#endif
138
            metadata.hdMasterKeyID = hdChain.masterKeyID;
144
            metadata.hdMasterKeyID = hdChain.masterKeyID;
139
            // increment childkey index
145
            // increment childkey index
140
            hdChain.nExternalChainCounter++;
146
            hdChain.nExternalChainCounter++;

Return to bug 635006