mirror of
https://github.com/monero-project/monero.git
synced 2025-05-31 14:14:23 -04:00
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
This commit is contained in:
parent
7abdba0a5c
commit
d2d8a41c47
8 changed files with 135 additions and 67 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue