We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1160d92 commit 40a170eCopy full SHA for 40a170e
lightning/src/util/events.rs
@@ -887,8 +887,8 @@ impl Writeable for Event {
887
write_tlv_fields!(writer, {
888
(0, channel_id, required),
889
(2, user_channel_id, required),
890
- (4, counterparty_node_id, required),
891
- (6, channel_type, required),
+ (4, Some(counterparty_node_id), required),
+ (6, Some(channel_type), required),
892
});
893
},
894
// Note that, going forward, all new events must only write data inside of
@@ -1181,8 +1181,8 @@ impl MaybeReadable for Event {
1181
read_tlv_fields!(reader, {
1182
1183
1184
- (4, counterparty_node_id_opt, option),
1185
- (6, channel_type_opt, option),
+ (4, counterparty_node_id_opt, required),
+ (6, channel_type_opt, required),
1186
1187
1188
Ok(Some(Event::ChannelReady {
0 commit comments