diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-26 13:36:41 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:54 -0700 |
commit | 77c507358bda9bd6c496f33e0f4418c0603bb08d (patch) | |
tree | 53e59bb680078392dbc32315c0b0f2adcde882f9 /src/merkleblock.cpp | |
parent | 02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (diff) |
Make Hash[160] consume range-like objects
Diffstat (limited to 'src/merkleblock.cpp')
-rw-r--r-- | src/merkleblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/merkleblock.cpp b/src/merkleblock.cpp index 8072b12119..b571d463c9 100644 --- a/src/merkleblock.cpp +++ b/src/merkleblock.cpp @@ -70,7 +70,7 @@ uint256 CPartialMerkleTree::CalcHash(int height, unsigned int pos, const std::ve else right = left; // combine subhashes - return Hash(left.begin(), left.end(), right.begin(), right.end()); + return Hash(left, right); } } @@ -126,7 +126,7 @@ uint256 CPartialMerkleTree::TraverseAndExtract(int height, unsigned int pos, uns right = left; } // and combine them before returning - return Hash(left.begin(), left.end(), right.begin(), right.end()); + return Hash(left, right); } } |