Update Wallet to 2.4.0 and other deps#248
Conversation
|
@notmandatory, I’m wondering if we should update our signing approach since the current method is deprecated. If we choose to proceed with the update, we will need to add |
Good question. I've created bitcoindevkit/bdk_wallet#405 to revert the deprecating of the signer mod. The new PSBT signer probably won't be available until |
|
Related #243. |
All correct. I've also reproduced error from PR's CI build in my local run I've applied the fix from #252 to my local code to verify that it helps. |
f7817a9 to
bfdabf7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #248 +/- ##
==========================================
+ Coverage 10.21% 11.36% +1.15%
==========================================
Files 8 8
Lines 2713 2807 +94
==========================================
+ Hits 277 319 +42
- Misses 2436 2488 +52
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for the rebase, @tvpeter! Unfortunately, CI is now failing because Pinning back to 2.1.0 won't work either - this branch already uses So it looks like we're stuck waiting for 2.4.0 to be released. Until then, CI will fail on this PR (and on any PR that rebases after merging this one). |
| let wallet_events = wallet | ||
| .apply_update_events(update) | ||
| .map_err(|e| Error::Generic(e.to_string()))?; | ||
| print_wallet_events(&wallet_events); | ||
| Ok(()) |
There was a problem hiding this comment.
We could use tap for convenience:
| let wallet_events = wallet | |
| .apply_update_events(update) | |
| .map_err(|e| Error::Generic(e.to_string()))?; | |
| print_wallet_events(&wallet_events); | |
| Ok(()) | |
| wallet | |
| .apply_update_events(update) | |
| .map_err(|e| Error::Generic(e.to_string()))? | |
| .tap(print_wallet_events); | |
| Ok(()) |
There was a problem hiding this comment.
While this will make it cleaner, I think it is not worth the cost of pulling in a whole library. I'm always for using a minimal number of external libraries.
There was a problem hiding this comment.
Maybe we can drop in another PR. Generally prefer to avoid deps cost.
Yes, I updated the warnings to be treated as errors in this commit 8d20cf2 because many Clippy warnings were being neglected and had to be merged into master. It's not coming from bdk_wallet |
The |
The Wallet 2.4.0 lib was just published and should fix this issue |
5dc6a28 to
5def41f
Compare
| let wallet_events = wallet | ||
| .apply_update_events(update) | ||
| .map_err(|e| Error::Generic(e.to_string()))?; | ||
| print_wallet_events(&wallet_events); | ||
| Ok(()) |
- Add wallet events to full_scan and sync subcommands
- update bdk_bitcoind_rpc to v0.22.0 - update bdk_electrum to v0.23.2 - update bdk_kyoto to v0.15.4
- add WalletEvent to rpc and cbf clients - Update Wallet to v2.4.0
- update bdk_electrum to v0.24.0 - update bdk_esplora to v0.22.2
81e90db to
eea5ba9
Compare
Seen the reason now. I amended the last commit and did not push. Thanks for catching that. |
Description
This PR updates the Wallet API to v2.4.0 and other dependencies. It also adds WalletEvent to both sync and full_scan for all backends.
Fixes #243
Changelog notice
print_wallet_eventsfunction to print wallet events to the terminal during syncChecklists
All Submissions:
cargo fmtandcargo clippybefore committing