@@ -92,6 +92,8 @@ impl MessageSendEventsProvider for DummyChannelHandler {
92
92
}
93
93
}
94
94
impl ChannelMessageHandler for DummyChannelHandler {
95
+ // Any messages which are related to a specific channel generate an error message to let the
96
+ // peer know we don't care about channels.
95
97
fn handle_open_channel ( & self , their_node_id : & PublicKey , _their_features : InitFeatures , msg : & msgs:: OpenChannel ) {
96
98
DummyChannelHandler :: push_error ( self , their_node_id, msg. temporary_channel_id ) ;
97
99
}
@@ -137,11 +139,11 @@ impl ChannelMessageHandler for DummyChannelHandler {
137
139
fn handle_announcement_signatures ( & self , their_node_id : & PublicKey , msg : & msgs:: AnnouncementSignatures ) {
138
140
DummyChannelHandler :: push_error ( self , their_node_id, msg. channel_id ) ;
139
141
}
140
- fn peer_disconnected ( & self , _their_node_id : & PublicKey , _no_connection_possible : bool ) { }
141
- fn peer_connected ( & self , _their_node_id : & PublicKey , _msg : & msgs:: Init ) { }
142
142
fn handle_channel_reestablish ( & self , their_node_id : & PublicKey , msg : & msgs:: ChannelReestablish ) {
143
143
DummyChannelHandler :: push_error ( self , their_node_id, msg. channel_id ) ;
144
144
}
145
+ fn peer_disconnected ( & self , _their_node_id : & PublicKey , _no_connection_possible : bool ) { }
146
+ fn peer_connected ( & self , _their_node_id : & PublicKey , _msg : & msgs:: Init ) { }
145
147
fn handle_error ( & self , _their_node_id : & PublicKey , _msg : & msgs:: ErrorMessage ) { }
146
148
}
147
149
impl Deref for DummyChannelHandler {
0 commit comments