Add a GetTxStatus trait in blockchain.#697
Add a GetTxStatus trait in blockchain.#697tnull wants to merge 5 commits intobitcoindevkit:masterfrom
GetTxStatus trait in blockchain.#697Conversation
GetTxStatus trait in bdk::blockchain.GetTxStatus trait in blockchain.
|
@vladimirfomene this is one to check out and see if you can incorporate into your |
I'm also happy to remove the client-specific behavior here and open another PR once the separate crate repo goes up. |
|
Ah, I just realized on the Is this intentional? Otherwise I'd just add it? |
It probably wasn't needed by BDK so wasn't added, so for completeness sake yes please add it. Thanks! |
Alright, thanks! I now added rudimentary support of For the time being I based this on this fork of the Electrum client, which is a simple rebase of bitcoindevkit/rust-electrum-client#58. There are some issues I found while implementing:
|
9d2477d to
3dddbfa
Compare
|
Btw. I'm aware that there are diverging opinions on whether such a general trait should be part of the BDK's Even though I think a more general interface would be nice, I'm happy to go either way, especially since currently neither is supported. If we only want to implement functionalities such as transaction status on individual blockchain clients, then |
|
After speaking to @afilini, I'm closing in favor of opening individual PRs for missing client features in the |
Description
This adds a
GetTxStatustrait that, when implemented, allows to query for the confirmation status of a transaction. I now also added a preliminary implementation forEsploraand will also updateElectrumClientas soon as it allows to query the necessary data.Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
CHANGELOG.md