mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-09 02:09:38 +01:00
Update lightning-transaction-sync
to use macros crate
This commit is contained in:
parent
0aed2b9c44
commit
99ae425cad
4 changed files with 5 additions and 6 deletions
|
@ -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 }
|
||||
|
|
|
@ -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"))]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue