mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Make Hash[160] consume range-like objects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user