diff options
| author | Pieter Wuille <[email protected]> | 2017-04-19 09:34:30 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-06-26 10:45:48 -0700 |
| commit | 013a56aa1af985894b3eaf7c325647b0b74e4456 (patch) | |
| tree | e09581eda1ae2da213a85f699acc47e312c4e1e8 /src/txdb.h | |
| parent | [MOVEONLY] Move LastCommonAncestor to chain (diff) | |
| download | discoin-013a56aa1af985894b3eaf7c325647b0b74e4456.tar.xz discoin-013a56aa1af985894b3eaf7c325647b0b74e4456.zip | |
Non-atomic flushing using the blockchain as replay journal
Diffstat (limited to 'src/txdb.h')
| -rw-r--r-- | src/txdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/txdb.h b/src/txdb.h index 2a3e4eb69..fa6bce214 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -25,6 +25,8 @@ static constexpr int DB_PEAK_USAGE_FACTOR = 2; static constexpr int MAX_BLOCK_COINSDB_USAGE = 10 * DB_PEAK_USAGE_FACTOR; //! -dbcache default (MiB) static const int64_t nDefaultDbCache = 450; +//! -dbbatchsize default (bytes) +static const int64_t nDefaultDbBatchSize = 16 << 20; //! max. -dbcache (MiB) static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024; //! min. -dbcache (MiB) @@ -74,6 +76,7 @@ public: bool GetCoin(const COutPoint &outpoint, Coin &coin) const override; bool HaveCoin(const COutPoint &outpoint) const override; uint256 GetBestBlock() const override; + std::vector<uint256> GetHeadBlocks() const override; bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override; CCoinsViewCursor *Cursor() const override; |