aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-11-25 16:26:20 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-25 16:26:35 +0100
commit63d1ae5556ea40dde0cca20addda4bba40005496 (patch)
tree84300b58849b139c71381704d54f640ffff694f7 /src/txdb.h
parentac0b2393a447bb20f8b0489a67237c98a1cfff4a (diff)
Do all block index writes in a batch
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 9a98fcc41b..f81fc62689 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -48,11 +48,9 @@ private:
CBlockTreeDB(const CBlockTreeDB&);
void operator=(const CBlockTreeDB&);
public:
- bool WriteBlockIndex(const CDiskBlockIndex& blockindex);
+ bool WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo);
bool ReadBlockFileInfo(int nFile, CBlockFileInfo &fileinfo);
- bool WriteBlockFileInfo(int nFile, const CBlockFileInfo &fileinfo);
bool ReadLastBlockFile(int &nFile);
- bool WriteLastBlockFile(int nFile);
bool WriteReindexing(bool fReindex);
bool ReadReindexing(bool &fReindex);
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos);