CI: added more tests to improve code coverage
This commit is contained in:
@@ -181,14 +181,14 @@ bool get_merkle_proof(const std::vector<std::vector<hash>>& tree, const hash& h,
|
||||
|
||||
root_hash get_root_from_proof(hash h, const std::vector<hash>& proof, size_t index, size_t count)
|
||||
{
|
||||
if (count == 1) {
|
||||
return root_hash(h);
|
||||
}
|
||||
|
||||
if (index >= count) {
|
||||
return root_hash();
|
||||
}
|
||||
|
||||
if (count == 1) {
|
||||
return root_hash(h);
|
||||
}
|
||||
|
||||
hash tmp[2];
|
||||
|
||||
if (count == 2) {
|
||||
|
||||
Reference in New Issue
Block a user