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:
Rusty Russell
2023-05-22 10:21:44 +09:30
parent e51460be28
commit 6c23349c72
17 changed files with 45 additions and 55 deletions

View File

@@ -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));