Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM
merge
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "leveldbwrapper.h"
|
||||
#include "dbwrapper.h"
|
||||
#include "notarisationdb.h"
|
||||
#include "uint256.h"
|
||||
#include "cc/eval.h"
|
||||
@@ -12,7 +12,7 @@
|
||||
NotarisationDB *pnotarisations;
|
||||
|
||||
|
||||
NotarisationDB::NotarisationDB(size_t nCacheSize, bool fMemory, bool fWipe) : CLevelDBWrapper(GetDataDir() / "notarisations", nCacheSize, fMemory, fWipe, false, 64) { }
|
||||
NotarisationDB::NotarisationDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapper(GetDataDir() / "notarisations", nCacheSize, fMemory, fWipe, false, 64) { }
|
||||
|
||||
|
||||
NotarisationsInBlock ScanBlockNotarisations(const CBlock &block, int nHeight)
|
||||
@@ -90,7 +90,7 @@ bool GetBackNotarisation(uint256 notarisationHash, Notarisation &n)
|
||||
/*
|
||||
* Write an index of KMD notarisation id -> backnotarisation
|
||||
*/
|
||||
void WriteBackNotarisations(const NotarisationsInBlock notarisations, CLevelDBBatch &batch)
|
||||
void WriteBackNotarisations(const NotarisationsInBlock notarisations, CDBBatch &batch)
|
||||
{
|
||||
int wrote = 0;
|
||||
BOOST_FOREACH(const Notarisation &n, notarisations)
|
||||
@@ -103,7 +103,7 @@ void WriteBackNotarisations(const NotarisationsInBlock notarisations, CLevelDBBa
|
||||
}
|
||||
|
||||
|
||||
void EraseBackNotarisations(const NotarisationsInBlock notarisations, CLevelDBBatch &batch)
|
||||
void EraseBackNotarisations(const NotarisationsInBlock notarisations, CDBBatch &batch)
|
||||
{
|
||||
BOOST_FOREACH(const Notarisation &n, notarisations)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user