|
|
@ -50,6 +50,8 @@ uint256 CalculateProofRoot(const char* symbol, uint32_t targetCCid, int kmdHeigh |
|
|
|
|
|
|
|
int seenOwnNotarisations = 0; |
|
|
|
|
|
|
|
bool txscl = IsTXSCL(symbol); |
|
|
|
|
|
|
|
for (int i=0; i<NOTARISATION_SCAN_LIMIT_BLOCKS; i++) { |
|
|
|
if (i > kmdHeight) break; |
|
|
|
NotarisationsInBlock notarisations; |
|
|
@ -72,8 +74,9 @@ uint256 CalculateProofRoot(const char* symbol, uint32_t targetCCid, int kmdHeigh |
|
|
|
|
|
|
|
if (seenOwnNotarisations == 1) { |
|
|
|
BOOST_FOREACH(Notarisation& nota, notarisations) { |
|
|
|
if (nota.second.ccId == targetCCid) |
|
|
|
moms.push_back(nota.second.MoM); |
|
|
|
if (IsTXSCL(nota.second.symbol) == txscl) |
|
|
|
if (nota.second.ccId == targetCCid) |
|
|
|
moms.push_back(nota.second.MoM); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|