diff options
author | fanquake <fanquake@gmail.com> | 2022-10-04 17:34:50 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-04 21:12:50 +0100 |
commit | 8a6b6dfcd8d26b62c3a13beba72440635fcc5e19 (patch) | |
tree | 963d5c8bcd62dbaffcf5fca0a57254430174ea97 /src | |
parent | eb155692804b4278f6638c74273c1d9d35cd6ab7 (diff) | |
download | bitcoin-8a6b6dfcd8d26b62c3a13beba72440635fcc5e19.tar.xz |
fuzz: pass max fee into ConsumeTxMemPoolEntry
Diffstat (limited to 'src')
-rw-r--r-- | src/test/fuzz/util/mempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util/mempool.cpp b/src/test/fuzz/util/mempool.cpp index 6185a807a7..d0053f77d2 100644 --- a/src/test/fuzz/util/mempool.cpp +++ b/src/test/fuzz/util/mempool.cpp @@ -17,7 +17,7 @@ CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider& fuzzed_data_provider, // policy/feerate.cpp:28:34: runtime error: signed integer overflow: 34873208148477500 * 1000 cannot be represented in type 'long' // // Reproduce using CFeeRate(348732081484775, 10).GetFeePerK() - const CAmount fee = std::min<CAmount>(ConsumeMoney(fuzzed_data_provider), std::numeric_limits<CAmount>::max() / static_cast<CAmount>(100000)); + const CAmount fee{ConsumeMoney(fuzzed_data_provider, /*max=*/std::numeric_limits<CAmount>::max() / CAmount{100'000})}; assert(MoneyRange(fee)); const int64_t time = fuzzed_data_provider.ConsumeIntegral<int64_t>(); const unsigned int entry_height = fuzzed_data_provider.ConsumeIntegral<unsigned int>(); |