Skip to content

Commit c4dc4d1

Browse files
committed
f update pending channel config
1 parent f322b3a commit c4dc4d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3576,6 +3576,9 @@ where
35763576
};
35773577
let mut config = context.config();
35783578
config.apply(config_update);
3579+
// We update the config, but we MUST NOT broadcast a `channel_update` before `channel_ready`
3580+
// which would be the case for pending inbound/outbound channels.
3581+
context.update_config(&config);
35793582
}
35803583
Ok(())
35813584
}

0 commit comments

Comments
 (0)