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.cpp | |
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 'src/common/command_line.cpp')
-rw-r--r-- | src/common/command_line.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp index 925b62a54..5e5a9ff44 100644 --- a/src/common/command_line.cpp +++ b/src/common/command_line.cpp @@ -91,4 +91,9 @@ namespace command_line , "Show time-stats when processing blocks/txs and disk synchronization." , 0 }; + const command_line::arg_descriptor<bool> arg_fakechain = { + "fakechain" + , "Use a fake chain for testing purposes." + , false + }; } |