Commit 33a363e
committed
Merge bitcoin#36168: PSBT: Make input/output
82deb69 PSBT: Make input/output `Merge()` methods return void (nebula-21)
Pull request description:
PSBT input/output `Merge()` methods always return `true` unconditionally and have no failure paths. As a result, the return value checks in `PartiallySignedTransaction::Merge()` can never fail and are dead code.
This makes the `bool` return type and `[[nodiscard]]` misleading.
This PR changes both methods to return `void` and remove the return value checks. If at some point in the future the failure logic is needed, it can be introduced again. For now using `void` makes the current behavior easier to understand.
ACKs for top commit:
achow101:
ACK 82deb69
polespinasa:
ACK 82deb69
sedited:
ACK 82deb69
Tree-SHA512: 694fdf19292d2f3627c90c5f111d7ecf5ad4f933d69eebf7c9ef37adee19be7de44002030ed4539aa5a28910acb751822b443f7ee22c80614296ef40d21c60daMerge() methods return void2 files changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 53 | + | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
| |||
421 | 417 | | |
422 | 418 | | |
423 | 419 | | |
424 | | - | |
| 420 | + | |
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
| |||
467 | 463 | | |
468 | 464 | | |
469 | 465 | | |
470 | | - | |
471 | | - | |
472 | 466 | | |
473 | 467 | | |
474 | 468 | | |
| |||
535 | 529 | | |
536 | 530 | | |
537 | 531 | | |
538 | | - | |
| 532 | + | |
539 | 533 | | |
540 | 534 | | |
541 | 535 | | |
| |||
547 | 541 | | |
548 | 542 | | |
549 | 543 | | |
550 | | - | |
551 | | - | |
552 | 544 | | |
553 | 545 | | |
554 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| |||
0 commit comments