darosior wrote #29060 (review):
This is useful documentation, plus useful in making sure the comment above the check does not become stale or incorrect.
Hence reverted.
darosior wrote #29060 (review):
This is useful documentation, plus useful in making sure the comment above the check does not become stale or incorrect.
Hence reverted.
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35328.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | sedited, l0rinc, willcl-ark |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
ACK ae73b69b5272ce69a409eeae9bf77222b23260a7
1088 | @@ -1089,6 +1089,7 @@ BOOST_AUTO_TEST_CASE(max_standard_legacy_sigops) 1089 | AddCoins(coins, CTransaction(tx_create_p2pk), 0, false); 1090 | 1091 | // The transaction now contains exactly 2500 sigops, the check should pass. 1092 | + BOOST_CHECK_EQUAL(p2sh_inputs_count * MAX_P2SH_SIGOPS + p2pk_inputs_count * 1, MAX_TX_LEGACY_SIGOPS);
Is the * 1 meant to document something here?
Yes, for completeness.
It won't hurt to make it implicit and remove the * 1 there.
But that is beyond the scope of this simple PR I am just reverting the unintended regression.
code review ACK ae73b69b5272ce69a409eeae9bf77222b23260a7
Cleanly reverts the affected line
ACK ae73b69b5272ce69a409eeae9bf77222b23260a7