[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 }
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"))]
#![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;
#[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;