Commit aa1769c
committed
Merge #568: psbt: Rewrite input replacement to avoid forgetting fields
c50bdf8 psbt: Rewrite input replacement to avoid forgetting fields (Steven Roose)
Pull request description:
The way it was written seemed very prone to forgetting fields if new ones would be added. Like this it just keeps the required fields and all the rest is set to `Default::default()`.
ACKs for top commit:
sanket1729:
utACK c50bdf8
apoelstra:
ACK c50bdf8
Tree-SHA512: 80bbd74ec6ed5e72786400a3ef1ca0330047423ca881efc0203f499b1f0aa544d9d2cc0743ecc03273b2ca2949c196fa7a94c8c965439db8993a9f69113b10fd1 file changed
+5
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| 420 | + | |
418 | 421 | | |
419 | | - | |
| 422 | + | |
| 423 | + | |
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
| |||
427 | 431 | | |
428 | 432 | | |
429 | 433 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 434 | | |
450 | 435 | | |
451 | 436 | | |
| |||
0 commit comments