Skip to content

Commit 40a170e

Browse files
committed
f Write as required option.
1 parent 1160d92 commit 40a170e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/util/events.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ impl Writeable for Event {
887887
write_tlv_fields!(writer, {
888888
(0, channel_id, required),
889889
(2, user_channel_id, required),
890-
(4, counterparty_node_id, required),
891-
(6, channel_type, required),
890+
(4, Some(counterparty_node_id), required),
891+
(6, Some(channel_type), required),
892892
});
893893
},
894894
// Note that, going forward, all new events must only write data inside of
@@ -1181,8 +1181,8 @@ impl MaybeReadable for Event {
11811181
read_tlv_fields!(reader, {
11821182
(0, channel_id, required),
11831183
(2, user_channel_id, required),
1184-
(4, counterparty_node_id_opt, option),
1185-
(6, channel_type_opt, option),
1184+
(4, counterparty_node_id_opt, required),
1185+
(6, channel_type_opt, required),
11861186
});
11871187

11881188
Ok(Some(Event::ChannelReady {

0 commit comments

Comments
 (0)