diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-08-13 19:11:05 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-20 23:08:57 +0200 |
commit | 5382bcf8cd23c36a435c29080770a79b5e28af42 (patch) | |
tree | dd7c095fbff8be37313779464bc6867d17cf12d7 /src/db.h | |
parent | 8adf48dc9b45816793c7b98e2f4fa625c2e09f2c (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); |