#![cfg(all(feature = "bitcoind_31_0", feature = "utreexod_0_5_2"))]
use std::thread;
use std::time::Duration;
use halfin::bitcoind::BitcoinD;
use halfin::connect;
use halfin::utreexod::UtreexoD;
use tracing::Level;
#[test]
fn test_logging_all() {
tracing_subscriber::fmt()
.with_max_level(Level::DEBUG)
.with_test_writer()
.init();
let bitcoind = BitcoinD::new().unwrap();
bitcoind.generate(2).unwrap();
bitcoind.get_block_hash(1).unwrap();
bitcoind.get_chain_tip().unwrap();
let utreexod = UtreexoD::new().unwrap();
utreexod.generate(2).unwrap();
connect(&bitcoind, &utreexod).unwrap();
thread::sleep(Duration::from_millis(500));
}