2 suggestions
Optional improvements
[suggestion] · CheckDustThreshold leaves its auxiliary outputs unexplained
The threshold checks are correct, but the helper omits why its extra zero-value outputs are necessary to observe an output's dust threshold through IsStandardTx.
Location: src/test/transaction_standardness_tests.cpp:81 (head).
Details and suggested fix
IsStandardTx permits one dust output, so making the output under test dust would not alone cause rejection. The auxiliary zero-value P2PKH outputs fill MAX_DUST_OUTPUTS_PER_TX: at threshold the dust count reaches the allowance, and at threshold - 1 it exceeds it. Add a short comment explaining this purpose beside the insertion, carrying forward the rationale from the old setup. Removing these outputs would visibly fail CheckIsNotStandard, not silently weaken coverage; the benefit is making the existing test construction understandable without tracing the policy implementation.
[suggestion] · Commit 083811f6 leaves its OP_RETURN value normalization unmentioned
The declarative rewrite also changes two tests' OP_RETURN output values from 90 * CENT to zero, adding an unmentioned fixture change to audit even though the policy results and asserted weights are unchanged.
Location: src/test/transaction_tests.cpp:854 at 083811f67848 (commit) (commit).
Details and suggested fix
The split commit, 748fb10ed5ba4cc2f3ab6d1ffe5f3920a42ef8f0, initializes test_IsStandard_op_return and test_IsStandard_tx_size with StandardOutput(), then replaces only scriptPubKey, retaining 90 * CENT. The declarative rewrite, 083811f6784845478db68b803ebeea384ea240d7, instead constructs both outputs with value zero. This is harmless: OP_RETURN outputs have a zero dust threshold, output values have fixed serialized size, and the size test retains its explicit weight assertions. However, the latter commit's message does not identify the normalization, so reviewers must distinguish it from the structural rewrite themselves.
Move these two value changes into 748fb10ed5ba4cc2f3ab6d1ffe5f3920a42ef8f0, whose message already allows irrelevant fixture values to differ, leaving 083811f6784845478db68b803ebeea384ea240d7 focused on declarative construction. Alternatively, explicitly mention the normalization in the latter commit's message. Either approach preserves the final tree.