-
Notifications
You must be signed in to change notification settings - Fork 420
fix(tx_builder)!: make TxBuilder Send safe, remove Clone trait #1737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tx_builder)!: make TxBuilder Send safe, remove Clone trait #1737
Conversation
d8ac00c to
e3288fd
Compare
e3288fd to
663fb13
Compare
|
@ValuedMammal you were right, I didn't need the |
|
Do we know if there are users using the Otherwise ack 663fb13, changes look good. Upon further thinking, I think any use of the |
We should be fine removing Long term the goal is to decouple |
|
I moved this back to in-progress, I need to verify bitcoindevkit/bdk-ffi#611 doesn't need |
evanlinjin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 663fb13
This makes a lot of sense. I don't see how this will be a problem for ffi, since the TxBuilder struct is only used within the lifetime of the ffi TxBuilder::finish method: https://github.com/bitcoindevkit/bdk-ffi/blob/cf5f714bed70cd7ee09f203f55548fb2a2c478f7/bdk-ffi/src/tx_builder.rs#L371-L399
|
@evanlinjin thanks for checking this for me. You're right that there's no need for |
Description
Inspired by discord chat with @stevenroose as a way to make the
TxBuilderSend 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
Clonetrait onTxBuilderbut it was only being used in tests.Changelog notice
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features: