Optionally allow DB to know expected number of blocks at batch transaction start

This will assist in a DB resize check.
This commit is contained in:
warptangent 2015-07-11 12:28:20 -07:00
parent 2cd4d7dd20
commit 6e170c8b78
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
6 changed files with 8 additions and 8 deletions

View file

@ -1820,7 +1820,7 @@ bool BlockchainLMDB::has_key_image(const crypto::key_image& img) const
return false;
}
void BlockchainLMDB::batch_start()
void BlockchainLMDB::batch_start(uint64_t batch_num_blocks)
{
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
if (! m_batch_transactions)