@@ -3218,7 +3218,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3218
3218
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3219
3219
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3220
3220
3221
- 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 } ) ) ) ;
3221
+ 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 } ) ) ) ;
3222
3222
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3223
3223
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3224
3224
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3232,7 +3232,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3232
3232
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3233
3233
default_config : config,
3234
3234
keys_manager,
3235
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3235
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3236
3236
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3237
3237
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3238
3238
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3284,7 +3284,7 @@ fn test_simple_manager_serialize_deserialize() {
3284
3284
let mut chan_0_monitor_serialized = test_utils:: TestVecWriter ( Vec :: new ( ) ) ;
3285
3285
nodes[ 0 ] . chan_monitor . simple_monitor . monitors . lock ( ) . unwrap ( ) . iter ( ) . next ( ) . unwrap ( ) . 1 . write_for_disk ( & mut chan_0_monitor_serialized) . unwrap ( ) ;
3286
3286
3287
- 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 } ) ) ) ;
3287
+ 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 } ) ) ) ;
3288
3288
let mut chan_0_monitor_read = & chan_0_monitor_serialized. 0 [ ..] ;
3289
3289
let ( _, chan_0_monitor) = <( Sha256dHash , ChannelMonitor ) >:: read ( & mut chan_0_monitor_read, Arc :: new ( test_utils:: TestLogger :: new ( ) ) ) . unwrap ( ) ;
3290
3290
assert ! ( chan_0_monitor_read. is_empty( ) ) ;
@@ -3297,7 +3297,7 @@ fn test_simple_manager_serialize_deserialize() {
3297
3297
<( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3298
3298
default_config : UserConfig :: new ( ) ,
3299
3299
keys_manager,
3300
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3300
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3301
3301
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3302
3302
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3303
3303
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
@@ -3344,7 +3344,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3344
3344
node_0_monitors_serialized. push ( writer. 0 ) ;
3345
3345
}
3346
3346
3347
- 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 } ) ) ) ;
3347
+ 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 } ) ) ) ;
3348
3348
let mut node_0_monitors = Vec :: new ( ) ;
3349
3349
for serialized in node_0_monitors_serialized. iter ( ) {
3350
3350
let mut read = & serialized[ ..] ;
@@ -3358,7 +3358,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
3358
3358
let ( _, nodes_0_deserialized) = <( Sha256dHash , ChannelManager ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3359
3359
default_config : UserConfig :: new ( ) ,
3360
3360
keys_manager,
3361
- fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 } ) ,
3361
+ fee_estimator : Arc :: new ( test_utils:: TestFeeEstimator { sat_per_kw : 253 , min_relay_sat_per_kw : 0 } ) ,
3362
3362
monitor : nodes[ 0 ] . chan_monitor . clone ( ) ,
3363
3363
chain_monitor : nodes[ 0 ] . chain_monitor . clone ( ) ,
3364
3364
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
0 commit comments