@@ -90,7 +90,7 @@ pub struct TestChannelMonitor {
90
90
pub should_update_manager : atomic:: AtomicBool ,
91
91
}
92
92
impl TestChannelMonitor {
93
- pub fn new ( chain_monitor : Arc < chaininterface:: ChainWatchInterface > , broadcaster : Arc < chaininterface:: BroadcasterInterface > , logger : Arc < Logger > , feeest : Arc < chaininterface:: FeeEstimator > ) -> Self {
93
+ pub fn new ( chain_monitor : Arc < dyn chaininterface:: ChainWatchInterface > , broadcaster : Arc < dyn chaininterface:: BroadcasterInterface > , logger : Arc < dyn Logger > , feeest : Arc < dyn chaininterface:: FeeEstimator > ) -> Self {
94
94
Self {
95
95
simple_monitor : channelmonitor:: SimpleManyChannelMonitor :: new ( chain_monitor, broadcaster, logger, feeest) ,
96
96
update_ret : Mutex :: new ( Ok ( ( ) ) ) ,
@@ -109,7 +109,7 @@ impl channelmonitor::ManyChannelMonitor for TestChannelMonitor {
109
109
monitor. write_for_disk ( & mut ser) . unwrap ( ) ;
110
110
self . latest_good_update . lock ( ) . unwrap ( ) . insert ( funding_txo, ser. 0 ) ;
111
111
match self . latest_update_good . lock ( ) . unwrap ( ) . entry ( funding_txo) {
112
- hash_map:: Entry :: Vacant ( mut e) => { e. insert ( true ) ; } ,
112
+ hash_map:: Entry :: Vacant ( e) => { e. insert ( true ) ; } ,
113
113
hash_map:: Entry :: Occupied ( mut e) => {
114
114
if !e. get ( ) && unsafe { IN_RESTORE } {
115
115
// Technically we can't consider an update to be "good" unless we're doing
@@ -184,7 +184,7 @@ pub fn do_test(data: &[u8]) {
184
184
185
185
macro_rules! make_node {
186
186
( $node_id: expr) => { {
187
- let logger: Arc <Logger > = Arc :: new( test_logger:: TestLogger :: new( $node_id. to_string( ) ) ) ;
187
+ let logger: Arc <dyn Logger > = Arc :: new( test_logger:: TestLogger :: new( $node_id. to_string( ) ) ) ;
188
188
let watch = Arc :: new( ChainWatchInterfaceUtil :: new( Network :: Bitcoin , Arc :: clone( & logger) ) ) ;
189
189
let monitor = Arc :: new( TestChannelMonitor :: new( watch. clone( ) , broadcast. clone( ) , logger. clone( ) , fee_est. clone( ) ) ) ;
190
190
@@ -200,7 +200,7 @@ pub fn do_test(data: &[u8]) {
200
200
201
201
macro_rules! reload_node {
202
202
( $ser: expr, $node_id: expr, $old_monitors: expr) => { {
203
- let logger: Arc <Logger > = Arc :: new( test_logger:: TestLogger :: new( $node_id. to_string( ) ) ) ;
203
+ let logger: Arc <dyn Logger > = Arc :: new( test_logger:: TestLogger :: new( $node_id. to_string( ) ) ) ;
204
204
let watch = Arc :: new( ChainWatchInterfaceUtil :: new( Network :: Bitcoin , Arc :: clone( & logger) ) ) ;
205
205
let monitor = Arc :: new( TestChannelMonitor :: new( watch. clone( ) , broadcast. clone( ) , logger. clone( ) , fee_est. clone( ) ) ) ;
206
206
0 commit comments