Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ElectrumSyncClient
Browse files Browse the repository at this point in the history
tnull committed Oct 30, 2023

Verified

This commit was signed with the committer’s verified signature.
tnull Elias Rohrer
1 parent 15433c3 commit e3edff2
Showing 5 changed files with 483 additions and 10 deletions.
5 changes: 3 additions & 2 deletions lightning-transaction-sync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ default = []
esplora-async = ["async-interface", "esplora-client/async", "futures"]
esplora-async-https = ["esplora-async", "reqwest/rustls-tls"]
esplora-blocking = ["esplora-client/blocking"]
electrum = ["electrum-client"]
async-interface = []

[dependencies]
@@ -27,9 +28,9 @@ bdk-macros = "0.6"
futures = { version = "0.3", optional = true }
esplora-client = { version = "0.4", default-features = false, optional = true }
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
electrum-client = { version = "0.14.1", optional = true }

[dev-dependencies]
lightning = { version = "0.0.118", path = "../lightning", features = ["std", "_test_utils"] }
electrsd = { version = "0.22.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_23_0"] }
electrum-client = "0.12.0"
electrsd = { version = "0.23.3", features = ["legacy", "esplora_a33e97e1", "bitcoind_23_0"] }
tokio = { version = "1.14.0", features = ["full"] }
1 change: 1 addition & 0 deletions lightning-transaction-sync/src/common.rs
Original file line number Diff line number Diff line change
@@ -67,6 +67,7 @@ impl FilterQueue {
}
}

#[derive(Debug)]
pub(crate) struct ConfirmedTx {
pub tx: Transaction,
pub block_header: BlockHeader,
Loading

0 comments on commit e3edff2

Please sign in to comment.