Use batch transactions when syncing

Faster throughput while avoiding corruption. I.e., makes
running with --db-sync-mode safe more tolerable.
This commit is contained in:
Howard Chu
2016-12-26 14:29:46 -08:00
committed by Howard Chu
parent 374762654e
commit 0693cff925
8 changed files with 23 additions and 15 deletions
+2 -2
View File
@@ -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()