diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-09-02 18:19:01 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-09-27 09:25:15 +0200 |
commit | 4731cab8fbff51a8178c85d572e2482040278616 (patch) | |
tree | 09ba06a320b4876f9318a5b9ff086e5cae9c48fe /src/key.cpp | |
parent | 2f71490d21796594ca6f55e375558944de9db5a0 (diff) |
Do not shadow variables
Diffstat (limited to 'src/key.cpp')
-rw-r--r-- | src/key.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/key.cpp b/src/key.cpp index 79023566c3..aae9b042ac 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -243,12 +243,12 @@ bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const return ret; } -bool CExtKey::Derive(CExtKey &out, unsigned int nChild) const { +bool CExtKey::Derive(CExtKey &out, unsigned int _nChild) const { out.nDepth = nDepth + 1; CKeyID id = key.GetPubKey().GetID(); memcpy(&out.vchFingerprint[0], &id, 4); - out.nChild = nChild; - return key.Derive(out.key, out.chaincode, nChild, chaincode); + out.nChild = _nChild; + return key.Derive(out.key, out.chaincode, _nChild, chaincode); } void CExtKey::SetMaster(const unsigned char *seed, unsigned int nSeedLen) { |