diff options
author | Howard Chu <highlandsun@gmail.com> | 2016-12-26 14:29:46 -0800 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2017-01-14 22:43:06 +0000 |
commit | 0693cff9251f91a05dd96b2f8910faea29cb29ce (patch) | |
tree | 51bc874f688229a4a1b582134521aaa674caf6a6 /tests/unit_tests/hardfork.cpp | |
parent | add tx hash to time stats (diff) | |
download | monero-0693cff9251f91a05dd96b2f8910faea29cb29ce.tar.xz |
Use batch transactions when syncing
Faster throughput while avoiding corruption. I.e., makes
running with --db-sync-mode safe more tolerable.
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 be2885f45..a854b7b52 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -51,7 +51,7 @@ public: virtual std::string get_db_name() const { return std::string(); } virtual bool lock() { return true; } virtual void unlock() { } - virtual void batch_start(uint64_t batch_num_blocks=0) {} + virtual bool batch_start(uint64_t batch_num_blocks=0) {} virtual void batch_stop() {} virtual void set_batch_transactions(bool) {} virtual void block_txn_start(bool readonly=false) {} |