Part of #36692. This replaces the field-by-field construction of transaction inputs and outputs in multisig_tests with COutPoint, CTxIn and CTxOut constructor calls.
It keeps CMutableTransaction as the builder, since a CTransaction constructor taking inputs and outputs directly is still under discussion (#36696). If one is added, the vin/vout lists here can be passed to it directly.
This change is test-only and does not change the constructed transactions:
- The funding outputs were previously created by
vout.resize(3)and only had theirscriptPubKeyassigned, leavingnValueat its null value (-1). The-1is now spelled out explicitly, which makes this previously hidden value visible - The loop index is changed from
inttouint32_tto matchCOutPoint::n