-
Notifications
You must be signed in to change notification settings - Fork 36
docs(wallet): add sync
operation to bdk_wallet
examples
#274
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
docs(wallet): add sync
operation to bdk_wallet
examples
#274
Conversation
sync
operation to bdk_wallet
examples for electrum
and esplora
sync
operation to bdk_wallet
examples
Pull Request Test Coverage Report for Build 16763241238Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
cACK 8e1a6ef
I left a few comments that I think are applicable. Also, I was unable to test the electrum example locally (I guess it's a local problem on my end).
I think it's a good opportunity to also add a forced eviction, and show that to the user. WDYT?
Any reason to not add the sync usage to blocking esplora example ?
Alright, I will do that.
No reason, I will also add that. Thank you for the review. I will make updates. |
98cb6b9
to
4130f46
Compare
I have added the eviction logic that identifies transactions that were unconfirmed before a partial sync but are no longer canonical after the sync.
I have also added the sync to the esplora blocking example. Another thing I considered was reducing the output of the full scan by a multiple of say 5 or 10 as it is getting lengthy. |
4130f46
to
50dacbf
Compare
5cf1d52
to
cd29221
Compare
I pushed a new commit to fix a couple things I found while testing:
|
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.
tACK ce0a17e
I'm not sure why, but now that it's using testnet instead of signet, I keep getting timeout errors and the RBF fails because the transaction is already mined in within that timeframe. |
- add partial syncing to electrum, esplora_async and esplora_blocking examples - add applying evicted txns to wallet in electrum, esplora_async and esplora_blocking examples
75178be
to
ae7af35
Compare
f31ae60
to
10f56f5
Compare
I switched it to use mempool.space and testnet4 which seem to be more reliable. It's also easier to get testnet4 coins from mempool.space since all you need to do is login with your GitHub account. And I cleaned up the just file for RPC to use the |
10f56f5
to
ade903d
Compare
@ValuedMammal following your comments on the issue here, I have removed the step that call the Thank you. |
ade903d
to
bb4d79b
Compare
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 bb4d79b
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.
partial tACK bb4d79b
I've test for all examples, both esplora and electrum works just fine.
I found a problem in the wallet_rpc one, I've left it as a comment.
… mempool.space For electrum, esplora examples print mempool.space tx URLs and add delay before RBF. For rpc example also add justfile to help testing with regtest bitcoind.
bb4d79b
to
11bfc2f
Compare
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.
tACK 11bfc2f
Description
This PR adds
sync
operation tobdk_wallet
examples forelectrum
andesplora
clients.Fixes #253
Checklists
All Submissions:
just p
before pushing