You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets the latest best block which was connected either via the [`chain::Listen`] or
1194
+
/// [`chain::Confirm`] interfaces.
1195
+
pubfncurrent_best_block(&self) -> BestBlock{
1196
+
self.inner.lock().unwrap().best_block.clone()
1197
+
}
1192
1198
}
1193
1199
1194
1200
impl<Signer:Sign>ChannelMonitorImpl<Signer>{
@@ -2827,11 +2833,11 @@ mod tests {
2827
2833
use bitcoin::hash_types::Txid;
2828
2834
use bitcoin::network::constants::Network;
2829
2835
use hex;
2836
+
use chain::BestBlock;
2830
2837
use chain::channelmonitor::ChannelMonitor;
2831
2838
use chain::package::{WEIGHT_OFFERED_HTLC,WEIGHT_RECEIVED_HTLC,WEIGHT_REVOKED_OFFERED_HTLC,WEIGHT_REVOKED_RECEIVED_HTLC,WEIGHT_REVOKED_OUTPUT};
2832
2839
use chain::transaction::OutPoint;
2833
2840
use ln::{PaymentPreimage,PaymentHash};
2834
-
use ln::channelmanager::BestBlock;
2835
2841
use ln::chan_utils;
2836
2842
use ln::chan_utils::{HTLCOutputInCommitment,ChannelPublicKeys,ChannelTransactionParameters,HolderCommitmentTransaction,CounterpartyChannelTransactionParameters};
2837
2843
use util::test_utils::{TestLogger,TestBroadcaster,TestFeeEstimator};
0 commit comments