From ae73b69b5272ce69a409eeae9bf77222b23260a7 Mon Sep 17 00:00:00 2001 From: ismaelsadeeq Date: Wed, 20 May 2026 10:44:30 +0100 Subject: [PATCH] test: restore assertion that tx contains exactly 2500 sigops Co-authored-by: Antoine Poinsot --- src/test/transaction_tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index a8a596f5ad2..a5b123ed465 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -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