@@ -3226,7 +3226,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3226
3226
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3227
3227
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3228
3228
3229
- nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ) ) ;
3229
+ nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ) ) ;
3230
3230
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3231
3231
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3232
3232
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3240,7 +3240,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3240
3240
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3241
3241
default_config : config,
3242
3242
keys_manager,
3243
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3243
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3244
3244
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3245
3245
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3246
3246
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3292,7 +3292,7 @@ fn test_simple_manager_serialize_deserialize() {
3292
3292
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3293
3293
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3294
3294
3295
- nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ) ) ;
3295
+ nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ) ) ;
3296
3296
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3297
3297
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3298
3298
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3305,7 +3305,7 @@ fn test_simple_manager_serialize_deserialize() {
3305
3305
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3306
3306
default_config : UserConfig :: new ( ) ,
3307
3307
keys_manager,
3308
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3308
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3309
3309
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3310
3310
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3311
3311
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3352,7 +3352,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3352
3352
node_0_monitors_serialized. push ( writer. 0 ) ;
3353
3353
}
3354
3354
3355
- nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ) ) ;
3355
+ nodes[ 0 ] . chan_monitor = Arc :: new ( test_utils:: TestChannelMonitor :: new ( nodes[ 0 ] . chain_monitor . clone ( ) , nodes[ 0 ] . tx_broadcaster . clone ( ) , Arc :: new ( test_utils:: TestLogger :: new ( ) ) , Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ) ) ;
3356
3356
let mut node_0_monitors = Vec :: new ( ) ;
3357
3357
for serialized in node_0_monitors_serialized. iter ( ) {
3358
3358
let mut read = & serialized[ ..] ;
@@ -3366,7 +3366,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3366
3366
let ( _, nodes_0_deserialized) = <( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3367
3367
default_config : UserConfig :: new ( ) ,
3368
3368
keys_manager,
3369
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3369
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3370
3370
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3371
3371
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3372
3372
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
0 commit comments