Review report

core: PR #36068

💡 Suggestion

Pool wrap reduces distinct-script coin-selection coverage (src/test/fuzz/util/wallet.h:67, head)

After 16 requests for the same output type and branch, this modulo cycles through the same destinations. The spend fuzz target can make more than 16 such requests, and it fuzzes m_avoid_partial_spends. Because coin selection groups repeated scripts, this changes the cases exercised compared with the previous helper, which generated a fresh destination per request. Consider extending each pool when it is exhausted instead of wrapping. This preserves the initial cached fast path and the previous distinct-address behavior for larger inputs, at the cost of additional derivation work for those inputs.

Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete.