fix issue where if there are not two notarisations the MoMoM is indeterninate

This commit is contained in:
blackjok3rtt
2018-09-15 14:17:18 +08:00
committed by GitHub
parent 0c0befd6c4
commit c0128ed414

View File

@@ -80,6 +80,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:
return GetMerkleRoot(moms);