aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
diff options
context:
space:
mode:
authorHoward Chu <highlandsun@gmail.com>2016-12-26 14:29:46 -0800
committerHoward Chu <hyc@symas.com>2017-01-14 22:43:06 +0000
commit0693cff9251f91a05dd96b2f8910faea29cb29ce (patch)
tree51bc874f688229a4a1b582134521aaa674caf6a6 /src/blockchain_utilities
parentadd tx hash to time stats (diff)
downloadmonero-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 'src/blockchain_utilities')
-rw-r--r--src/blockchain_utilities/fake_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/fake_core.h b/src/blockchain_utilities/fake_core.h
index ba1c2ed72..814139602 100644
--- a/src/blockchain_utilities/fake_core.h
+++ b/src/blockchain_utilities/fake_core.h
@@ -119,9 +119,9 @@ struct fake_core_db
return m_storage.get_db().add_block(blk, block_size, cumulative_difficulty, coins_generated, txs);
}
- void batch_start(uint64_t batch_num_blocks = 0)
+ bool batch_start(uint64_t batch_num_blocks = 0)
{
- m_storage.get_db().batch_start(batch_num_blocks);
+ return m_storage.get_db().batch_start(batch_num_blocks);
}
void batch_stop()