aboutsummaryrefslogtreecommitdiff
path: root/src/key.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-09-02 18:19:01 +0200
committerPavel Janík <Pavel@Janik.cz>2016-09-27 09:25:15 +0200
commit4731cab8fbff51a8178c85d572e2482040278616 (patch)
tree09ba06a320b4876f9318a5b9ff086e5cae9c48fe /src/key.cpp
parent2f71490d21796594ca6f55e375558944de9db5a0 (diff)
downloadbitcoin-4731cab8fbff51a8178c85d572e2482040278616.tar.xz
Do not shadow variables
Diffstat (limited to 'src/key.cpp')
-rw-r--r--src/key.cpp6
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) {