@@ -1914,31 +1914,31 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
19141914 MessageSendEvent :: SendAcceptChannel { ref node_id, ref msg } => {
19151915 log_debug ! ( self . logger, "Handling SendAcceptChannel event in peer_handler for node {} for channel {}" ,
19161916 log_pubkey!( node_id) ,
1917- log_bytes! ( msg. temporary_channel_id. bytes ( ) [ .. ] ) ) ;
1917+ & msg. temporary_channel_id) ;
19181918 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19191919 } ,
19201920 MessageSendEvent :: SendAcceptChannelV2 { ref node_id, ref msg } => {
19211921 log_debug ! ( self . logger, "Handling SendAcceptChannelV2 event in peer_handler for node {} for channel {}" ,
19221922 log_pubkey!( node_id) ,
1923- log_bytes! ( msg. temporary_channel_id. bytes ( ) [ .. ] ) ) ;
1923+ & msg. temporary_channel_id) ;
19241924 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19251925 } ,
19261926 MessageSendEvent :: SendOpenChannel { ref node_id, ref msg } => {
19271927 log_debug ! ( self . logger, "Handling SendOpenChannel event in peer_handler for node {} for channel {}" ,
19281928 log_pubkey!( node_id) ,
1929- log_bytes! ( msg. temporary_channel_id. bytes ( ) [ .. ] ) ) ;
1929+ & msg. temporary_channel_id) ;
19301930 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19311931 } ,
19321932 MessageSendEvent :: SendOpenChannelV2 { ref node_id, ref msg } => {
19331933 log_debug ! ( self . logger, "Handling SendOpenChannelV2 event in peer_handler for node {} for channel {}" ,
19341934 log_pubkey!( node_id) ,
1935- log_bytes! ( msg. temporary_channel_id. bytes ( ) [ .. ] ) ) ;
1935+ & msg. temporary_channel_id) ;
19361936 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19371937 } ,
19381938 MessageSendEvent :: SendFundingCreated { ref node_id, ref msg } => {
19391939 log_debug ! ( self . logger, "Handling SendFundingCreated event in peer_handler for node {} for channel {} (which becomes {})" ,
19401940 log_pubkey!( node_id) ,
1941- log_bytes! ( msg. temporary_channel_id. bytes ( ) [ .. ] ) ,
1941+ & msg. temporary_channel_id,
19421942 log_funding_channel_id!( msg. funding_txid, msg. funding_output_index) ) ;
19431943 // TODO: If the peer is gone we should generate a DiscardFunding event
19441944 // indicating to the wallet that they should just throw away this funding transaction
@@ -1947,73 +1947,73 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
19471947 MessageSendEvent :: SendFundingSigned { ref node_id, ref msg } => {
19481948 log_debug ! ( self . logger, "Handling SendFundingSigned event in peer_handler for node {} for channel {}" ,
19491949 log_pubkey!( node_id) ,
1950- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1950+ & msg. channel_id) ;
19511951 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19521952 } ,
19531953 MessageSendEvent :: SendChannelReady { ref node_id, ref msg } => {
19541954 log_debug ! ( self . logger, "Handling SendChannelReady event in peer_handler for node {} for channel {}" ,
19551955 log_pubkey!( node_id) ,
1956- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1956+ & msg. channel_id) ;
19571957 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19581958 } ,
19591959 MessageSendEvent :: SendTxAddInput { ref node_id, ref msg } => {
19601960 log_debug ! ( self . logger, "Handling SendTxAddInput event in peer_handler for node {} for channel {}" ,
19611961 log_pubkey!( node_id) ,
1962- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1962+ & msg. channel_id) ;
19631963 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19641964 } ,
19651965 MessageSendEvent :: SendTxAddOutput { ref node_id, ref msg } => {
19661966 log_debug ! ( self . logger, "Handling SendTxAddOutput event in peer_handler for node {} for channel {}" ,
19671967 log_pubkey!( node_id) ,
1968- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1968+ & msg. channel_id) ;
19691969 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19701970 } ,
19711971 MessageSendEvent :: SendTxRemoveInput { ref node_id, ref msg } => {
19721972 log_debug ! ( self . logger, "Handling SendTxRemoveInput event in peer_handler for node {} for channel {}" ,
19731973 log_pubkey!( node_id) ,
1974- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1974+ & msg. channel_id) ;
19751975 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19761976 } ,
19771977 MessageSendEvent :: SendTxRemoveOutput { ref node_id, ref msg } => {
19781978 log_debug ! ( self . logger, "Handling SendTxRemoveOutput event in peer_handler for node {} for channel {}" ,
19791979 log_pubkey!( node_id) ,
1980- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1980+ & msg. channel_id) ;
19811981 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19821982 } ,
19831983 MessageSendEvent :: SendTxComplete { ref node_id, ref msg } => {
19841984 log_debug ! ( self . logger, "Handling SendTxComplete event in peer_handler for node {} for channel {}" ,
19851985 log_pubkey!( node_id) ,
1986- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1986+ & msg. channel_id) ;
19871987 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19881988 } ,
19891989 MessageSendEvent :: SendTxSignatures { ref node_id, ref msg } => {
19901990 log_debug ! ( self . logger, "Handling SendTxSignatures event in peer_handler for node {} for channel {}" ,
19911991 log_pubkey!( node_id) ,
1992- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1992+ & msg. channel_id) ;
19931993 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
19941994 } ,
19951995 MessageSendEvent :: SendTxInitRbf { ref node_id, ref msg } => {
19961996 log_debug ! ( self . logger, "Handling SendTxInitRbf event in peer_handler for node {} for channel {}" ,
19971997 log_pubkey!( node_id) ,
1998- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
1998+ & msg. channel_id) ;
19991999 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20002000 } ,
20012001 MessageSendEvent :: SendTxAckRbf { ref node_id, ref msg } => {
20022002 log_debug ! ( self . logger, "Handling SendTxAckRbf event in peer_handler for node {} for channel {}" ,
20032003 log_pubkey!( node_id) ,
2004- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2004+ & msg. channel_id) ;
20052005 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20062006 } ,
20072007 MessageSendEvent :: SendTxAbort { ref node_id, ref msg } => {
20082008 log_debug ! ( self . logger, "Handling SendTxAbort event in peer_handler for node {} for channel {}" ,
20092009 log_pubkey!( node_id) ,
2010- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2010+ & msg. channel_id) ;
20112011 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20122012 } ,
20132013 MessageSendEvent :: SendAnnouncementSignatures { ref node_id, ref msg } => {
20142014 log_debug ! ( self . logger, "Handling SendAnnouncementSignatures event in peer_handler for node {} for channel {})" ,
20152015 log_pubkey!( node_id) ,
2016- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2016+ & msg. channel_id) ;
20172017 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20182018 } ,
20192019 MessageSendEvent :: UpdateHTLCs { ref node_id, updates : msgs:: CommitmentUpdate { ref update_add_htlcs, ref update_fulfill_htlcs, ref update_fail_htlcs, ref update_fail_malformed_htlcs, ref update_fee, ref commitment_signed } } => {
@@ -2022,7 +2022,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
20222022 update_add_htlcs. len( ) ,
20232023 update_fulfill_htlcs. len( ) ,
20242024 update_fail_htlcs. len( ) ,
2025- log_bytes! ( commitment_signed. channel_id. bytes ( ) [ .. ] ) ) ;
2025+ & commitment_signed. channel_id) ;
20262026 let mut peer = get_peer_for_forwarding ! ( node_id) ;
20272027 for msg in update_add_htlcs {
20282028 self . enqueue_message ( & mut * peer, msg) ;
@@ -2044,25 +2044,25 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
20442044 MessageSendEvent :: SendRevokeAndACK { ref node_id, ref msg } => {
20452045 log_debug ! ( self . logger, "Handling SendRevokeAndACK event in peer_handler for node {} for channel {}" ,
20462046 log_pubkey!( node_id) ,
2047- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2047+ & msg. channel_id) ;
20482048 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20492049 } ,
20502050 MessageSendEvent :: SendClosingSigned { ref node_id, ref msg } => {
20512051 log_debug ! ( self . logger, "Handling SendClosingSigned event in peer_handler for node {} for channel {}" ,
20522052 log_pubkey!( node_id) ,
2053- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2053+ & msg. channel_id) ;
20542054 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20552055 } ,
20562056 MessageSendEvent :: SendShutdown { ref node_id, ref msg } => {
20572057 log_debug ! ( self . logger, "Handling Shutdown event in peer_handler for node {} for channel {}" ,
20582058 log_pubkey!( node_id) ,
2059- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2059+ & msg. channel_id) ;
20602060 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20612061 } ,
20622062 MessageSendEvent :: SendChannelReestablish { ref node_id, ref msg } => {
20632063 log_debug ! ( self . logger, "Handling SendChannelReestablish event in peer_handler for node {} for channel {}" ,
20642064 log_pubkey!( node_id) ,
2065- log_bytes! ( msg. channel_id. bytes ( ) [ .. ] ) ) ;
2065+ & msg. channel_id) ;
20662066 self . enqueue_message ( & mut * get_peer_for_forwarding ! ( node_id) , msg) ;
20672067 } ,
20682068 MessageSendEvent :: SendChannelAnnouncement { ref node_id, ref msg, ref update_msg } => {
0 commit comments