Commit 8714e9d
committed
Merge #1503: feat(wallet): simplify
e7ec5a8 refactor(wallet)!: remove redundant get_descriptor_for_keychain (Giovanni Napoli)
Pull request description:
Fixes #1501
### Description
Simplifies `public_descriptor` function by using `get_descriptor` and removes `get_descriptor_for_keychain`.
### Notes to the reviewers
Tested with `cargo test --all-features`.
### Changelog notice
- Simplifies `public_descriptor` function and removes `get_descriptor_for_keychain`
### 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
ACKs for top commit:
notmandatory:
ACK e7ec5a8
storopoli:
ACK e7ec5a8
Tree-SHA512: 5981190ac882e08e42b1be53c55afb70c4ba7e7a99a8ae2a4e05f0618d0eb23849ce544024bb406e6a6918d9e9757d9ff6ad5a701cd9814b686e36f1ea16b44apublic_descriptor fn and remove `get_descriptor_for_keych…4 files changed
Lines changed: 22 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1595 | 1595 | | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | | - | |
| 1598 | + | |
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1768 | 1769 | | |
1769 | | - | |
| 1770 | + | |
1770 | 1771 | | |
1771 | 1772 | | |
1772 | 1773 | | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
| 1774 | + | |
1776 | 1775 | | |
1777 | 1776 | | |
1778 | 1777 | | |
| |||
1878 | 1877 | | |
1879 | 1878 | | |
1880 | 1879 | | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
1885 | | - | |
1886 | 1880 | | |
1887 | 1881 | | |
1888 | 1882 | | |
| |||
1918 | 1912 | | |
1919 | 1913 | | |
1920 | 1914 | | |
1921 | | - | |
| 1915 | + | |
1922 | 1916 | | |
1923 | 1917 | | |
1924 | 1918 | | |
| |||
1927 | 1921 | | |
1928 | 1922 | | |
1929 | 1923 | | |
1930 | | - | |
| 1924 | + | |
1931 | 1925 | | |
1932 | 1926 | | |
1933 | 1927 | | |
| |||
2140 | 2134 | | |
2141 | 2135 | | |
2142 | 2136 | | |
2143 | | - | |
| 2137 | + | |
2144 | 2138 | | |
2145 | 2139 | | |
2146 | 2140 | | |
| |||
2180 | 2174 | | |
2181 | 2175 | | |
2182 | 2176 | | |
2183 | | - | |
| 2177 | + | |
2184 | 2178 | | |
2185 | 2179 | | |
2186 | 2180 | | |
| |||
2200 | 2194 | | |
2201 | 2195 | | |
2202 | 2196 | | |
2203 | | - | |
| 2197 | + | |
2204 | 2198 | | |
2205 | | - | |
| 2199 | + | |
2206 | 2200 | | |
2207 | 2201 | | |
2208 | 2202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
| 1426 | + | |
1427 | 1427 | | |
1428 | 1428 | | |
1429 | 1429 | | |
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | | - | |
| 1502 | + | |
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
| |||
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
1527 | | - | |
| 1527 | + | |
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
1548 | | - | |
| 1548 | + | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
| |||
1589 | 1589 | | |
1590 | 1590 | | |
1591 | 1591 | | |
1592 | | - | |
| 1592 | + | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| |||
3421 | 3421 | | |
3422 | 3422 | | |
3423 | 3423 | | |
3424 | | - | |
| 3424 | + | |
3425 | 3425 | | |
3426 | 3426 | | |
3427 | 3427 | | |
| |||
0 commit comments