diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-04 10:50:12 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-08 08:59:00 +0200 |
commit | fa6183d7761eef8bb815aa888f0396e92e275f05 (patch) | |
tree | 0fa3bd2c44ebe7522e2f1ca68651d31881831b21 /src/test/util/setup_common.h | |
parent | fa732bccb3cf9bc2cdc444975286df0e799917a2 (diff) | |
download | bitcoin-fa6183d7761eef8bb815aa888f0396e92e275f05.tar.xz |
test: Remove option to make TestChain100Setup non-deterministic
Seems odd to have an option for non-deterministic tests
when the goal should be for all tests to be deterministic.
Can be reviewed with `--ignore-all-space`.
Diffstat (limited to 'src/test/util/setup_common.h')
-rw-r--r-- | src/test/util/setup_common.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h index 7323f1f0b6..a32f1f3805 100644 --- a/src/test/util/setup_common.h +++ b/src/test/util/setup_common.h @@ -112,7 +112,7 @@ class CScript; * Testing fixture that pre-creates a 100-block REGTEST-mode block chain */ struct TestChain100Setup : public RegTestingSetup { - TestChain100Setup(bool deterministic = false); + TestChain100Setup(); /** * Create a new block with just given transactions, coinbase paying to @@ -143,16 +143,10 @@ struct TestChain100Setup : public RegTestingSetup { ~TestChain100Setup(); - bool m_deterministic; std::vector<CTransactionRef> m_coinbase_txns; // For convenience, coinbase transactions CKey coinbaseKey; // private/public key needed to spend coinbase transactions }; - -struct TestChain100DeterministicSetup : public TestChain100Setup { - TestChain100DeterministicSetup() : TestChain100Setup(true) { } -}; - /** * Make a test setup that has disk access to the debug.log file disabled. Can * be used in "hot loops", for example fuzzing or benchmarking. |