Commit f6c1c61
committed
Merge #1737: fix(tx_builder)!: make TxBuilder Send safe, remove Clone trait
663fb13 fix(tx_builder)!: make TxBuilder Send safe, remove Clone trait (Steve Myers)
Pull request description:
### Description
Inspired by discord chat with @stevenroose as a way to make the `TxBuilder` Send safe.
See his original patch on 1.0.0-beta.5: https://gist.github.com/stevenroose/f7736dfedfaa64bbdbb0da5875df28fc
### Notes to the reviewers
I had to remove the `Clone` trait on `TxBuilder` but it was only being used in tests.
### Changelog notice
- TxBuilder is now Send safe and does not implement the Clone trait
### 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
#### New Features:
* [x] I've added tests for the new feature
* [ ] I've added docs for the new feature
ACKs for top commit:
evanlinjin:
ACK 663fb13
Tree-SHA512: 026c0f5f227b5613bbab069b2c5238266aea6f6c2ae184cf77d37777fee2ddd52a99c9e305c107a2edd855dbd182d1b9194de361703995732061649f155cb65f3 files changed
+22
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
| 1208 | + | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
| |||
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
1714 | | - | |
| 1714 | + | |
1715 | 1715 | | |
1716 | 1716 | | |
1717 | 1717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 163 | | |
175 | 164 | | |
176 | 165 | | |
| |||
286 | 275 | | |
287 | 276 | | |
288 | 277 | | |
289 | | - | |
| 278 | + | |
290 | 279 | | |
291 | 280 | | |
292 | 281 | | |
| |||
682 | 671 | | |
683 | 672 | | |
684 | 673 | | |
685 | | - | |
686 | | - | |
687 | | - | |
| 674 | + | |
688 | 675 | | |
689 | 676 | | |
690 | 677 | | |
| |||
750 | 737 | | |
751 | 738 | | |
752 | 739 | | |
753 | | - | |
| 740 | + | |
754 | 741 | | |
755 | 742 | | |
756 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | 1652 | | |
1656 | | - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1657 | 1656 | | |
1658 | 1657 | | |
1659 | 1658 | | |
| |||
1668 | 1667 | | |
1669 | 1668 | | |
1670 | 1669 | | |
1671 | | - | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1672 | 1673 | | |
1673 | 1674 | | |
1674 | 1675 | | |
| |||
1684 | 1685 | | |
1685 | 1686 | | |
1686 | 1687 | | |
1687 | | - | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
1688 | 1691 | | |
1689 | 1692 | | |
1690 | 1693 | | |
| |||
4192 | 4195 | | |
4193 | 4196 | | |
4194 | 4197 | | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
0 commit comments