Skip to content

Commit

Permalink
Implement ElectrumSyncClient
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Nov 16, 2023
1 parent 5634cc1 commit 25ef374
Show file tree
Hide file tree
Showing 5 changed files with 502 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
Expand Up @@ -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]
Expand All @@ -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
Expand Up @@ -100,6 +100,7 @@ impl FilterQueue {
}
}

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

0 comments on commit 25ef374

Please sign in to comment.