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. |
- 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
f7817a9 to
bfdabf7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #248 +/- ##
==========================================
+ Coverage 11.13% 11.38% +0.24%
==========================================
Files 8 8
Lines 2488 2803 +315
==========================================
+ Hits 277 319 +42
- Misses 2211 2484 +273
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.
| Ok((wallet_opts, network)) | ||
| } | ||
| #[cfg(any(feature = "electrum", feature = "esplora",))] | ||
| pub fn print_wallet_events(events: &Vec<WalletEvent>) { |
There was a problem hiding this comment.
| pub fn print_wallet_events(events: &Vec<WalletEvent>) { | |
| pub fn print_wallet_events(events: &[WalletEvent]) { |
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 |
- add WalletEvent to rpc and cbf clients - Update Wallet to v2.4.0
5dc6a28 to
5def41f
Compare
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