[bitcoin/bitcoin] Implement BIP 174 Partially Signed Bitcoin Transactions (#12136)

laanwj commented on this pull request.

> +
+ // Put the witness utxo for witness outputs
+ if (witness || type == TX_WITNESS_V0_KEYHASH || type == TX_WITNESS_V0_SCRIPTHASH || type == TX_WITNESS_UNKNOWN) {
+ // Put the witness CTxOut in the input
+ input.witness_utxo = prevout;
+ }
+ // Not witness, put non witness utxo
+ else {
+ input.non_witness_utxo = wtx.tx;
+ }
+
+ if (psbtx_blank) {
+ // Add to inputs
+ psbtx.inputs.push_back(input);
+ }
+ }

Should that be mentioned in the spec, then?

Добавить комментарий