diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-08-14 16:42:36 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-08-14 16:52:36 +0200 |
| commit | 3e5424faf6ff4f0990f7b3b9ca879d434f2abbb2 (patch) | |
| tree | d28eb61520e2d0ad6edd8272452d4b345982c34a /src/httpserver.cpp | |
| parent | Merge #13965: tests: Fix extended functional tests fail (diff) | |
| parent | Serialize non-witness utxo as a non-witness tx but always deserialize as witness (diff) | |
| download | discoin-3e5424faf6ff4f0990f7b3b9ca879d434f2abbb2.tar.xz discoin-3e5424faf6ff4f0990f7b3b9ca879d434f2abbb2.zip | |
Merge #13960: Fix PSBT deserialization of 0-input transactions
bd19cc78cfc455cf06e120adb0d12c2f96ba8fca Serialize non-witness utxo as a non-witness tx but always deserialize as witness (Andrew Chow)
43811e63380d803e037de69dc0567aae590fa109 Fix PSBT deserialization of 0-input transactions (Andrew Chow)
Pull request description:
0-input transactions can be ambiguously deserialized as being witness transactions. Since the unsigned transaction is never serialized as a witness transaction as it has no witnesses, we should always deserialize it as a non-witness transaction and set the serialization flags as such.
When a transaction is serliazed for the non-witness-utxo, it is always a valid network transaction and thus it should be always be deserialized as a witness transaction and the deserialzation flags are set as such.
Fixes #13958
Tree-SHA512: 1937b3cb2618534478d4f533541fb9efce3cb5badb5d1964bfe19400f4aacc6c8ecedaf1f20d26b20baf94f81fd07dfb15b3b08089ecbd63aeecbc18c7c48086
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions