fix issue where if there are not two notarisations the MoMoM is indeterninate
This commit is contained in:
@@ -81,6 +81,11 @@ uint256 CalculateProofRoot(const char* symbol, uint32_t targetCCid, int kmdHeigh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Not enough own notarisations found to return determinate MoMoM
|
||||||
|
destNotarisationTxid = uint256();
|
||||||
|
moms.clear();
|
||||||
|
return uint256();
|
||||||
|
|
||||||
end:
|
end:
|
||||||
return GetMerkleRoot(moms);
|
return GetMerkleRoot(moms);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user