aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/fake_core.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-07-11 12:28:20 -0700
committerwarptangent <warptangent@inbox.com>2015-07-11 23:54:12 -0700
commit6e170c8b786a443bfece65f28e33d1b5455b269c (patch)
tree678f5130753aa75c507b5b5ecb669e1d79dab936 /src/blockchain_utilities/fake_core.h
parentMerge pull request #329 (diff)
downloadmonero-6e170c8b786a443bfece65f28e33d1b5455b269c.tar.xz
Optionally allow DB to know expected number of blocks at batch transaction start
This will assist in a DB resize check.
Diffstat (limited to 'src/blockchain_utilities/fake_core.h')
-rw-r--r--src/blockchain_utilities/fake_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_utilities/fake_core.h b/src/blockchain_utilities/fake_core.h
index 79fb51842..5eda504fe 100644
--- a/src/blockchain_utilities/fake_core.h
+++ b/src/blockchain_utilities/fake_core.h
@@ -96,9 +96,9 @@ struct fake_core_lmdb
return m_storage.get_db().add_block(blk, block_size, cumulative_difficulty, coins_generated, txs);
}
- void batch_start()
+ void batch_start(uint64_t batch_num_blocks = 0)
{
- m_storage.get_db().batch_start();
+ m_storage.get_db().batch_start(batch_num_blocks);
}
void batch_stop()
@@ -150,7 +150,7 @@ struct fake_core_memory
return 2;
}
- void batch_start()
+ void batch_start(uint64_t batch_num_blocks = 0)
{
LOG_PRINT_L0("WARNING: [batch_start] opt_batch set, but this database doesn't support/need transactions - ignoring");
}