`rustfmt`: `fuzz/src/chanmon_deser.rs`
[rust-lightning] / lightning-transaction-sync / tests / integration_tests.rs
index 8aadf9a2ed18ed4d45970e7eec736e642399b998..b1118e457767f533ed37b6d68bece48002f80975 100644 (file)
@@ -1,4 +1,4 @@
-#![cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))]
+#![cfg(all(not(target_os = "windows"), any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum")))]
 
 #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
 use lightning_transaction_sync::EsploraSyncClient;
@@ -12,7 +12,7 @@ use electrsd::{bitcoind, bitcoind::BitcoinD, ElectrsD};
 use bitcoin::{Amount, Txid, BlockHash};
 use bitcoin::blockdata::block::Header;
 use bitcoin::blockdata::constants::genesis_block;
-use bitcoin::network::constants::Network;
+use bitcoin::network::Network;
 use electrsd::bitcoind::bitcoincore_rpc::bitcoincore_rpc_json::AddressType;
 use bitcoind::bitcoincore_rpc::RpcApi;
 use bdk_macros::maybe_await;
@@ -171,7 +171,7 @@ macro_rules! test_syncing {
                None, None, None, None).unwrap();
                let second_txid = $bitcoind.client.send_to_address(&new_address, Amount::from_sat(5000), None,
                None, None, None, None, None).unwrap();
-               $tx_sync.register_tx(&txid, &new_address.payload.script_pubkey());
+               $tx_sync.register_tx(&txid, &new_address.payload().script_pubkey());
 
                maybe_await!($tx_sync.sync(vec![&$confirmable])).unwrap();