mirror of
https://github.com/monero-project/monero.git
synced 2026-01-08 11:21:16 -08: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:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user