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
parent
commit
c0128ed414
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/crosschain.cpp

5
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);

Loading…
Cancel
Save