@@ -3914,7 +3914,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3914
3914
keys_manager = test_utils:: TestKeysInterface :: new ( & nodes[ 0 ] . node_seed , Network :: Testnet ) ;
3915
3915
let ( _, nodes_0_deserialized_tmp) = {
3916
3916
let mut channel_monitors = HashMap :: new ( ) ;
3917
- channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) , & mut chan_0_monitor) ;
3917
+ channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) . 0 , & mut chan_0_monitor) ;
3918
3918
<( BlockHash , ChannelManager < EnforcingChannelKeys , & test_utils:: TestChannelMonitor , & test_utils:: TestBroadcaster , & test_utils:: TestKeysInterface , & test_utils:: TestFeeEstimator , & test_utils:: TestLogger > ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
3919
3919
default_config : config,
3920
3920
keys_manager : & keys_manager,
@@ -3928,7 +3928,7 @@ fn test_no_txn_manager_serialize_deserialize() {
3928
3928
nodes_0_deserialized = nodes_0_deserialized_tmp;
3929
3929
assert ! ( nodes_0_read. is_empty( ) ) ;
3930
3930
3931
- assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) , chan_0_monitor) . is_ok( ) ) ;
3931
+ assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) . 0 , chan_0_monitor) . is_ok( ) ) ;
3932
3932
nodes[ 0 ] . node = & nodes_0_deserialized;
3933
3933
nodes[ 0 ] . block_notifier . register_listener ( nodes[ 0 ] . node ) ;
3934
3934
assert_eq ! ( nodes[ 0 ] . node. list_channels( ) . len( ) , 1 ) ;
@@ -4022,7 +4022,7 @@ fn test_manager_serialize_deserialize_events() {
4022
4022
keys_manager = test_utils:: TestKeysInterface :: new ( & nodes[ 0 ] . node_seed , Network :: Testnet ) ;
4023
4023
let ( _, nodes_0_deserialized_tmp) = {
4024
4024
let mut channel_monitors = HashMap :: new ( ) ;
4025
- channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) , & mut chan_0_monitor) ;
4025
+ channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) . 0 , & mut chan_0_monitor) ;
4026
4026
<( BlockHash , ChannelManager < EnforcingChannelKeys , & test_utils:: TestChannelMonitor , & test_utils:: TestBroadcaster , & test_utils:: TestKeysInterface , & test_utils:: TestFeeEstimator , & test_utils:: TestLogger > ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
4027
4027
default_config : config,
4028
4028
keys_manager : & keys_manager,
@@ -4038,7 +4038,7 @@ fn test_manager_serialize_deserialize_events() {
4038
4038
4039
4039
nodes[ 1 ] . node . peer_disconnected ( & nodes[ 0 ] . node . get_our_node_id ( ) , false ) ;
4040
4040
4041
- assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) , chan_0_monitor) . is_ok( ) ) ;
4041
+ assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) . 0 , chan_0_monitor) . is_ok( ) ) ;
4042
4042
nodes[ 0 ] . node = & nodes_0_deserialized;
4043
4043
4044
4044
// After deserializing, make sure the FundingBroadcastSafe event is still held by the channel manager
@@ -4112,7 +4112,7 @@ fn test_simple_manager_serialize_deserialize() {
4112
4112
keys_manager = test_utils:: TestKeysInterface :: new ( & nodes[ 0 ] . node_seed , Network :: Testnet ) ;
4113
4113
let ( _, nodes_0_deserialized_tmp) = {
4114
4114
let mut channel_monitors = HashMap :: new ( ) ;
4115
- channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) , & mut chan_0_monitor) ;
4115
+ channel_monitors. insert ( chan_0_monitor. get_funding_txo ( ) . 0 , & mut chan_0_monitor) ;
4116
4116
<( BlockHash , ChannelManager < EnforcingChannelKeys , & test_utils:: TestChannelMonitor , & test_utils:: TestBroadcaster , & test_utils:: TestKeysInterface , & test_utils:: TestFeeEstimator , & test_utils:: TestLogger > ) >:: read ( & mut nodes_0_read, ChannelManagerReadArgs {
4117
4117
default_config : UserConfig :: default ( ) ,
4118
4118
keys_manager : & keys_manager,
@@ -4126,7 +4126,7 @@ fn test_simple_manager_serialize_deserialize() {
4126
4126
nodes_0_deserialized = nodes_0_deserialized_tmp;
4127
4127
assert ! ( nodes_0_read. is_empty( ) ) ;
4128
4128
4129
- assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) , chan_0_monitor) . is_ok( ) ) ;
4129
+ assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( chan_0_monitor. get_funding_txo( ) . 0 , chan_0_monitor) . is_ok( ) ) ;
4130
4130
nodes[ 0 ] . node = & nodes_0_deserialized;
4131
4131
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
4132
4132
@@ -4210,7 +4210,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
4210
4210
monitor : nodes[ 0 ] . chan_monitor ,
4211
4211
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
4212
4212
logger : & logger,
4213
- channel_monitors : & mut node_0_stale_monitors. iter_mut ( ) . map ( |monitor| { ( monitor. get_funding_txo ( ) , monitor) } ) . collect ( ) ,
4213
+ channel_monitors : & mut node_0_stale_monitors. iter_mut ( ) . map ( |monitor| { ( monitor. get_funding_txo ( ) . 0 , monitor) } ) . collect ( ) ,
4214
4214
} ) { } else {
4215
4215
panic ! ( "If the monitor(s) are stale, this indicates a bug and we should get an Err return" ) ;
4216
4216
} ;
@@ -4224,7 +4224,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
4224
4224
monitor : nodes[ 0 ] . chan_monitor ,
4225
4225
tx_broadcaster : nodes[ 0 ] . tx_broadcaster . clone ( ) ,
4226
4226
logger : & logger,
4227
- channel_monitors : & mut node_0_monitors. iter_mut ( ) . map ( |monitor| { ( monitor. get_funding_txo ( ) , monitor) } ) . collect ( ) ,
4227
+ channel_monitors : & mut node_0_monitors. iter_mut ( ) . map ( |monitor| { ( monitor. get_funding_txo ( ) . 0 , monitor) } ) . collect ( ) ,
4228
4228
} ) . unwrap ( ) ;
4229
4229
nodes_0_deserialized = nodes_0_deserialized_tmp;
4230
4230
assert ! ( nodes_0_read. is_empty( ) ) ;
@@ -4237,7 +4237,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
4237
4237
}
4238
4238
4239
4239
for monitor in node_0_monitors. drain ( ..) {
4240
- assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( monitor. get_funding_txo( ) , monitor) . is_ok( ) ) ;
4240
+ assert ! ( nodes[ 0 ] . chan_monitor. add_monitor( monitor. get_funding_txo( ) . 0 , monitor) . is_ok( ) ) ;
4241
4241
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
4242
4242
}
4243
4243
nodes[ 0 ] . node = & nodes_0_deserialized;
0 commit comments