aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-08-13 19:11:05 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-20 23:08:57 +0200
commit5382bcf8cd23c36a435c29080770a79b5e28af42 (patch)
treedd7c095fbff8be37313779464bc6867d17cf12d7 /src/db.h
parent8adf48dc9b45816793c7b98e2f4fa625c2e09f2c (diff)
Multiple blocks per file
Change the block storage layer again, this time with multiple files per block, but tracked by txindex.dat database entries. The file format is exactly the same as the earlier blk00001.dat, but with smaller files (128 MiB for now). The database entries track how many bytes each block file already uses, how many blocks are in it, which range of heights is present and which range of dates.
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 798913645f..61b59060a0 100644
--- a/src/db.h
+++ b/src/db.h
@@ -339,6 +339,10 @@ public:
bool WriteHashBestChain(uint256 hashBestChain);
bool ReadBestInvalidWork(CBigNum& bnBestInvalidWork);
bool WriteBestInvalidWork(CBigNum bnBestInvalidWork);
+ bool ReadBlockFileInfo(int nFile, CBlockFileInfo &fileinfo);
+ bool WriteBlockFileInfo(int nFile, const CBlockFileInfo &fileinfo);
+ bool ReadLastBlockFile(int &nFile);
+ bool WriteLastBlockFile(int nFile);
bool LoadBlockIndex();
private:
bool LoadBlockIndexGuts();