CI: added more tests to improve code coverage

This commit is contained in:
SChernykh
2025-06-20 19:49:30 +02:00
parent 3d1ef0d049
commit 6cd79b3a48
3 changed files with 41 additions and 4 deletions

View File

@@ -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) {