Commit f0840c0
committed
Merge #232: fix: Validate prevouts in
6ffc874 fix!: Check prevout bounds in `Wallet::build_fee_bump` (志宇)
00a57cf fix: Validate prevouts in `get_psbt_input` (ItshMoh)
Pull request description:
Fixes #50
Fixes #51
Replaces bitcoindevkit/bdk#1911
Replaces bitcoindevkit/bdk#1913
### Description
We should check the bounds of the prev txs.
### Changelog notice
```md
Fixed:
- Wallet::get_psbt_input method now checks bounds when fetching prevout
- Wallet::build_fee_bump method now checks bounds when fetching prevout
```
### Checklists
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
* [x] I ran `cargo fmt` and `cargo clippy` before committing
#### Bugfixes:
~~* [ ] I've added tests to reproduce the issue which are now passing~~
* [x] I'm linking the issue being fixed by this PR
ACKs for top commit:
ValuedMammal:
ACK 6ffc874
Tree-SHA512: f2df49b5bc827583251b1dc8b965a038a239a7fa321cc30504d2f1862523be4e132066643c1e1309122d19eefd65ddbac4c714724899b662c6a879df71bd3752get_psbt_input
2 files changed
+23
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
1693 | | - | |
| 1693 | + | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | | - | |
1697 | | - | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
1698 | 1703 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
| 1704 | + | |
| 1705 | + | |
1702 | 1706 | | |
1703 | 1707 | | |
1704 | 1708 | | |
| |||
1708 | 1712 | | |
1709 | 1713 | | |
1710 | 1714 | | |
1711 | | - | |
| 1715 | + | |
1712 | 1716 | | |
1713 | 1717 | | |
1714 | 1718 | | |
| |||
1729 | 1733 | | |
1730 | 1734 | | |
1731 | 1735 | | |
1732 | | - | |
| 1736 | + | |
1733 | 1737 | | |
1734 | 1738 | | |
1735 | | - | |
| 1739 | + | |
1736 | 1740 | | |
1737 | 1741 | | |
1738 | 1742 | | |
| |||
2211 | 2215 | | |
2212 | 2216 | | |
2213 | 2217 | | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
2214 | 2222 | | |
2215 | | - | |
| 2223 | + | |
2216 | 2224 | | |
2217 | 2225 | | |
2218 | 2226 | | |
| |||
0 commit comments