diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 11:38:37 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 11:38:37 +0000 |
commit | 10da0a0b7cc70fad0ffde60bdd04926484fb043a (patch) | |
tree | 01c2dc48aef06f5494c1782c76b080f0f7de9e21 /src/common/command_line.h | |
parent | unit_tests: fix block reward test using post hard fork settings (diff) | |
download | monero-10da0a0b7cc70fad0ffde60bdd04926484fb043a.tar.xz |
add a --fakechain argument for tests
The core tests use the blockchain, and reset it to be able
to add test data to it. This does not play nice with the
databases, since those will save that data without an explicit
save call.
We add a fakechain flag that the tests will set, which tells
the core and blockchain code to use a separate database, as
well as skip a few things like checkpoints and fixup, which
only make sense for real data.
Diffstat (limited to '')
-rw-r--r-- | src/common/command_line.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/command_line.h b/src/common/command_line.h index ffac71704..8955b826e 100644 --- a/src/common/command_line.h +++ b/src/common/command_line.h @@ -215,4 +215,5 @@ namespace command_line extern const arg_descriptor<uint64_t> arg_prep_blocks_threads; extern const arg_descriptor<uint64_t> arg_db_auto_remove_logs; extern const arg_descriptor<uint64_t> arg_show_time_stats; + extern const arg_descriptor<bool> arg_fakechain; } |