test: restore assertion that tx contains exactly 2500 sigops

Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
ismaelsadeeq
2026-05-20 10:44:30 +01:00
parent 5570b86fa7
commit ae73b69b52

View File

@@ -1089,6 +1089,7 @@ BOOST_AUTO_TEST_CASE(max_standard_legacy_sigops)
AddCoins(coins, CTransaction(tx_create_p2pk), 0, false);
// The transaction now contains exactly 2500 sigops, the check should pass.
BOOST_CHECK_EQUAL(p2sh_inputs_count * MAX_P2SH_SIGOPS + p2pk_inputs_count * 1, MAX_TX_LEGACY_SIGOPS);
BOOST_CHECK(::ValidateInputsStandardness(CTransaction(tx_max_sigops), coins).IsValid());
// Now, add some Segwit inputs. We add one for each defined Segwit output type. The limit