aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-04-19 09:34:30 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-26 10:45:48 -0700
commit013a56aa1af985894b3eaf7c325647b0b74e4456 (patch)
treee09581eda1ae2da213a85f699acc47e312c4e1e8 /src/txdb.h
parentb3a279cd58d9ae0e107c7fee81f598635e53f9e1 (diff)
Non-atomic flushing using the blockchain as replay journal
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 2a3e4eb696..fa6bce2140 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;