mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
channeld: allow stfu based on peer features, not EXPERIMENTAL_FEATURES.
Changelog-EXPERIMENTAL: Config: `--experimental-quiesce` enables queiescence, for testing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -196,9 +196,7 @@ static u8 *read_next_msg(const tal_t *ctx,
|
||||
case WIRE_PING:
|
||||
case WIRE_PONG:
|
||||
case WIRE_SHUTDOWN:
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
case WIRE_STFU:
|
||||
#endif
|
||||
*error = tal_fmt(ctx,
|
||||
"Received invalid message from peer: %d", t);
|
||||
return NULL;
|
||||
@@ -715,10 +713,10 @@ char *process_interactivetx_updates(const tal_t *ctx,
|
||||
case WIRE_REPLY_SHORT_CHANNEL_IDS_END:
|
||||
case WIRE_PING:
|
||||
case WIRE_PONG:
|
||||
case WIRE_STFU:
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
case WIRE_SPLICE:
|
||||
case WIRE_SPLICE_ACK:
|
||||
case WIRE_STFU:
|
||||
#endif
|
||||
return tal_fmt(ctx, "Unexpected wire message %s",
|
||||
tal_hex(ctx, msg));
|
||||
|
||||
Reference in New Issue
Block a user