use chain::chaininterface; use chain::chaininterface::ConfirmationTarget; use ln::channelmonitor; use ln::msgs::HandleError; use bitcoin::blockdata::transaction::Transaction; use bitcoin::util::hash::Sha256dHash; pub struct TestFeeEstimator { pub sat_per_vbyte: u64, } impl chaininterface::FeeEstimator for TestFeeEstimator { fn get_est_sat_per_vbyte(&self, _confirmation_target: ConfirmationTarget) -> u64 { self.sat_per_vbyte } } pub struct TestChannelMonitor { } impl channelmonitor::ManyChannelMonitor for TestChannelMonitor { fn add_update_monitor(&self, _funding_txo: (Sha256dHash, u16), _monitor: channelmonitor::ChannelMonitor) -> Result<(), HandleError> { //TODO! Ok(()) } } pub struct TestBroadcaster { } impl chaininterface::BroadcasterInterface for TestBroadcaster { fn broadcast_transaction(&self, _tx: &Transaction) { //TODO } }