Skip to content

Commit bbbb518

Browse files
author
MarcoFalke
committed
fuzz: Speed up transaction fuzz target
1 parent ea8b2e8 commit bbbb518

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/fuzz/transaction.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ FUZZ_TARGET_INIT(transaction, initialize_transaction)
103103
(void)IsWitnessStandard(tx, coins_view_cache);
104104

105105
UniValue u(UniValue::VOBJ);
106-
TxToUniv(tx, /* hashBlock */ {}, /* include_addresses */ true, u);
107-
TxToUniv(tx, /* hashBlock */ {}, /* include_addresses */ false, u);
108-
static const uint256 u256_max(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
109-
TxToUniv(tx, u256_max, /* include_addresses */ true, u);
110-
TxToUniv(tx, u256_max, /* include_addresses */ false, u);
106+
TxToUniv(tx, /* hashBlock */ uint256::ZERO, /* include_addresses */ true, u);
107+
TxToUniv(tx, /* hashBlock */ uint256::ONE, /* include_addresses */ false, u);
111108
}

0 commit comments

Comments
 (0)