aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-09-17 00:12:42 +0100
committerHoward Chu <hyc@symas.com>2017-09-17 22:08:40 +0100
commitd2d8a41c47b408df35d1379255fc009f50a0b770 (patch)
treebd2503bbcad8d08a7d7b67e9ba2e54da674743c9 /src/blockchain_db/blockchain_db.h
parentMerge pull request #2438 (diff)
downloadmonero-d2d8a41c47b408df35d1379255fc009f50a0b770.tar.xz
Use actual batch size for resize estimates
And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height
Diffstat (limited to 'src/blockchain_db/blockchain_db.h')
-rw-r--r--src/blockchain_db/blockchain_db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h
index 85a494ce7..838385e8a 100644
--- a/src/blockchain_db/blockchain_db.h
+++ b/src/blockchain_db/blockchain_db.h
@@ -711,7 +711,7 @@ public:
*
* @return true if we started the batch, false if already started
*/
- virtual bool batch_start(uint64_t batch_num_blocks=0) = 0;
+ virtual bool batch_start(uint64_t batch_num_blocks=0, uint64_t batch_bytes=0) = 0;
/**
* @brief ends a batch transaction