Skip to content

Commit

Permalink
Update lightning-transaction-sync to use macros crate
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Sep 21, 2024
1 parent 3bc10e9 commit eda480b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lightning-transaction-sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ async-interface = []

[dependencies]
lightning = { version = "0.0.124", path = "../lightning", default-features = false, features = ["std"] }
lightning-macros = { version = "0.1", path = "../lightning-macros", default-features = false }
bitcoin = { version = "0.32.2", default-features = false }
bdk-macros = "0.6"
futures = { version = "0.3", optional = true }
esplora-client = { version = "0.9", default-features = false, optional = true }
electrum-client = { version = "0.21.0", optional = true }
Expand Down
2 changes: 2 additions & 0 deletions lightning-transaction-sync/src/esplora.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use lightning::chain::{Confirm, Filter};
use lightning::util::logger::Logger;
use lightning::{log_debug, log_error, log_trace};

use lightning_macros::{maybe_async, maybe_await};

use bitcoin::{BlockHash, Script, Txid};

#[cfg(not(feature = "async-interface"))]
Expand Down
4 changes: 0 additions & 4 deletions lightning-transaction-sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@
#![deny(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
#[macro_use]
extern crate bdk_macros;

#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
mod esplora;

Expand Down
3 changes: 2 additions & 1 deletion lightning-transaction-sync/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ use lightning_transaction_sync::ElectrumSyncClient;
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
use lightning_transaction_sync::EsploraSyncClient;

use bdk_macros::maybe_await;
use lightning_macros::maybe_await;

use bitcoin::block::Header;
use bitcoin::constants::genesis_block;
use bitcoin::network::Network;
Expand Down

0 comments on commit eda480b

Please sign in to comment.