diff options
author | warptangent <warptangent@inbox.com> | 2015-07-11 12:32:49 -0700 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-07-11 23:54:14 -0700 |
commit | 699e4b3f65baf8bb2ddd2377dc74e2a3168c6244 (patch) | |
tree | 0324f61a96e588b41457835c3698faee702d893e /src/blockchain_utilities/blockchain_converter.cpp | |
parent | Optionally allow DB to know expected number of blocks at batch transaction start (diff) | |
download | monero-699e4b3f65baf8bb2ddd2377dc74e2a3168c6244.tar.xz |
blockchain_utilities: Pass expected number of blocks when starting batch
Diffstat (limited to 'src/blockchain_utilities/blockchain_converter.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_converter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_converter.cpp b/src/blockchain_utilities/blockchain_converter.cpp index 855dde644..d18ce8789 100644 --- a/src/blockchain_utilities/blockchain_converter.cpp +++ b/src/blockchain_utilities/blockchain_converter.cpp @@ -236,7 +236,7 @@ int main(int argc, char* argv[]) } if (opt_batch) - blockchain->batch_start(); + blockchain->batch_start(db_batch_size); uint64_t i = 0; for (i = start_block; i < end_block + 1; ++i) { @@ -277,7 +277,7 @@ int main(int argc, char* argv[]) std::cout << "\r \r"; std::cout << "[- batch commit at height " << i + 1 << " -]" << ENDL; blockchain->batch_stop(); - blockchain->batch_start(); + blockchain->batch_start(db_batch_size); std::cout << ENDL; blockchain->show_stats(); } |