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

@@ -12,7 +12,7 @@ NotarisationDB *pnotarisations;
NotarisationDB::NotarisationDB(size_t nCacheSize, bool fMemory, bool fWipe) : CLevelDBWrapper(GetDataDir() / "notarisations", nCacheSize, fMemory, fWipe, false, 64) { }
NotarisationsInBlock GetNotarisationsInBlock(const CBlock &block, int nHeight)
NotarisationsInBlock ScanBlockNotarisations(const CBlock &block, int nHeight)
{
EvalRef eval;
NotarisationsInBlock vNotarisations;