Signing a transaction can only happen when the transaction has inputs. A transaction with inputs can always be deserialized as witness-transaction. If try_no_witness
decoding is attempted, this will lead to rare intermittent failures.
Fixes #18803
Signing a transaction can only happen when the transaction has inputs. A transaction with inputs can always be deserialized as witness-transaction. If try_no_witness
decoding is attempted, this will lead to rare intermittent failures.
Fixes #18803
DecodeHexTx(…, …, true)
in non-test code, besides fundrawtransaction
.
@MarcoFalke could you follow up with achows query:
What happens if someone does try a 0 input tx with these? Ideally we would give a meaningful error, but I don’t think we do.
ACK 33330778230961cfbf2a24de36b5877e395cc596
Confirmed the RPCs changed are only worth calling if you have inputs, and the error message changes look okay.