diff options
author | Howard Chu <hyc@symas.com> | 2017-09-17 00:12:42 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2017-09-17 22:08:40 +0100 |
commit | d2d8a41c47b408df35d1379255fc009f50a0b770 (patch) | |
tree | bd2503bbcad8d08a7d7b67e9ba2e54da674743c9 /tests/unit_tests/hardfork.cpp | |
parent | Merge pull request #2438 (diff) | |
download | monero-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 '')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index c30feb461..2b0904224 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -53,7 +53,7 @@ public: virtual std::string get_db_name() const { return std::string(); } virtual bool lock() { return true; } virtual void unlock() { } - virtual bool batch_start(uint64_t batch_num_blocks=0) { return true; } + virtual bool batch_start(uint64_t batch_num_blocks=0, uint64_t batch_bytes=0) { return true; } virtual void batch_stop() {} virtual void set_batch_transactions(bool) {} virtual void block_txn_start(bool readonly=false) {} |