mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
gossip: Fix disable flags in handle_disable_channel
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
ea011b9e2b
commit
3e5b798c60
@ -2496,8 +2496,9 @@ static struct io_plan *handle_disable_channel(struct io_conn *conn,
|
||||
if (timestamp <= hc->last_timestamp)
|
||||
timestamp = hc->last_timestamp + 1;
|
||||
|
||||
/* Active is bit 1 << 1, mask and apply */
|
||||
flags = (0xFFFD & flags) | (!active << 1);
|
||||
flags = direction;
|
||||
if (!active)
|
||||
flags |= ROUTING_FLAGS_DISABLED;
|
||||
|
||||
msg = towire_channel_update(tmpctx, &sig, &chain_hash, &scid, timestamp,
|
||||
flags, cltv_expiry_delta, htlc_minimum_msat,
|
||||
|
Loading…
Reference in New Issue
Block a user