Browse Source

fix GetNextBacknotarisation

pull/4/head
Scott Sadler 6 years ago
parent
commit
36f8002f93
  1. 11
      src/crosschain.cpp

11
src/crosschain.cpp

@ -198,7 +198,16 @@ bool GetNextBacknotarisation(uint256 kmdNotarisationTxid, Notarisation &out)
if (!GetBackNotarisation(kmdNotarisationTxid, bn))
return false;
return (bool) ScanNotarisationsFromHeight(bn.second.height+1, &IsSameAssetChain, out);
// Need to get block height of that backnotarisation
EvalRef eval;
CBlockIndex block;
CTransaction tx;
if (!eval->GetTxConfirmed(bn.first, tx, block)){
fprintf(stderr, "Can't get height of backnotarisation, this should not happen\n");
return false;
}
return (bool) ScanNotarisationsFromHeight(block.nHeight+1, &IsSameAssetChain, out);
}

Loading…
Cancel
Save