Browse Source
fix issue where if there are not two notarisations the MoMoM is indeterninate
pull/27/head
blackjok3rtt
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/crosschain.cpp
|
|
@ -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); |
|
|
|