aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2021-07-12 01:03:05 +0200
committerGitHub <[email protected]>2021-07-12 01:03:05 +0200
commitb1a924969057693a55c458ab53894f677abe1823 (patch)
tree389dffcde9239314e72c2bd5e05c2b74aec3f2a0 /src/test/fuzz
parentMerge pull request #2288 from fdoving/fdov-depends-libevent (diff)
parentAdd warning log message if overriding -blockmintxfee (diff)
downloaddiscoin-1.21-dev.tar.xz
discoin-1.21-dev.zip
Merge pull request #2311 from rnicoll/1.21-subsidy-tests1.21-dev
Rewrite subsidy limit tests (1.21)
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/coins_view.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/coins_view.cpp b/src/test/fuzz/coins_view.cpp
index ac034809b..77fe98030 100644
--- a/src/test/fuzz/coins_view.cpp
+++ b/src/test/fuzz/coins_view.cpp
@@ -234,6 +234,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
break;
}
case 2: {
+ const Consensus::Params& consensus_params = Params().GetConsensus();
TxValidationState state;
CAmount tx_fee_out;
const CTransaction transaction{random_mutable_transaction};
@@ -243,7 +244,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
break;
}
try {
- (void)Consensus::CheckTxInputs(transaction, state, coins_view_cache, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, std::numeric_limits<int>::max()), tx_fee_out);
+ (void)Consensus::CheckTxInputs(transaction, state, coins_view_cache, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, std::numeric_limits<int>::max()), tx_fee_out, consensus_params);
assert(MoneyRange(tx_fee_out));
} catch (const std::runtime_error&) {
}