create function to query notarisations leveldb by height

This commit is contained in:
Scott Sadler
2018-06-14 08:35:53 -03:00
parent 846384769c
commit 7f3cc8a296
4 changed files with 48 additions and 30 deletions

View File

@@ -2919,7 +2919,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
}
// Record Notarisations
NotarisationsInBlock notarisations = GetNotarisationsInBlock(block, pindex->nHeight);
NotarisationsInBlock notarisations = ScanBlockNotarisations(block, pindex->nHeight);
if (notarisations.size() > 0) {
CLevelDBBatch batch;
batch.Write(block.GetHash(), notarisations);