File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1534,6 +1534,21 @@ static void peer_in(struct peer *peer, const u8 *msg)
1534
1534
enum wire_type type = fromwire_peektype (msg );
1535
1535
status_trace ("peer_in %s" , wire_type_name (type ));
1536
1536
1537
+ /* FIXME: We don't support concurrent channels with same peer. */
1538
+ if (type == WIRE_OPEN_CHANNEL ) {
1539
+ struct channel_id channel_id ;
1540
+
1541
+ if (extract_channel_id (msg , & channel_id )) {
1542
+ u8 * reply ;
1543
+
1544
+ reply = towire_errorfmt (msg , & channel_id ,
1545
+ "Opening multiple channels"
1546
+ " unsupported" );
1547
+ enqueue_peer_msg (peer , take (reply ));
1548
+ return ;
1549
+ }
1550
+ }
1551
+
1537
1552
/* Must get funding_locked before almost anything. */
1538
1553
if (!peer -> funding_locked [REMOTE ]) {
1539
1554
/* We can get gossip before funding, too */
You can’t perform that action at this time.
0 commit comments