@@ -3236,7 +3236,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3236
3236
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3237
3237
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3238
3238
3239
- 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 } ) ) ) ;
3239
+ 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 } ) ) ) ;
3240
3240
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3241
3241
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3242
3242
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3250,7 +3250,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3250
3250
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3251
3251
default_config : config,
3252
3252
keys_manager,
3253
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3253
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3254
3254
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3255
3255
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3256
3256
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3302,7 +3302,7 @@ fn test_simple_manager_serialize_deserialize() {
3302
3302
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3303
3303
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3304
3304
3305
- 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 } ) ) ) ;
3305
+ 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 } ) ) ) ;
3306
3306
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3307
3307
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3308
3308
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3315,7 +3315,7 @@ fn test_simple_manager_serialize_deserialize() {
3315
3315
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3316
3316
default_config : UserConfig :: new ( ) ,
3317
3317
keys_manager,
3318
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3318
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3319
3319
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3320
3320
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3321
3321
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3362,7 +3362,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3362
3362
node_0_monitors_serialized. push ( writer. 0 ) ;
3363
3363
}
3364
3364
3365
- 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 } ) ) ) ;
3365
+ 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 } ) ) ) ;
3366
3366
let mut node_0_monitors = Vec :: new ( ) ;
3367
3367
for serialized in node_0_monitors_serialized. iter ( ) {
3368
3368
let mut read = & serialized[ ..] ;
@@ -3376,7 +3376,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3376
3376
let ( _, nodes_0_deserialized) = <( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3377
3377
default_config : UserConfig :: new ( ) ,
3378
3378
keys_manager,
3379
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3379
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3380
3380
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3381
3381
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3382
3382
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
0 commit comments