Skip to content

Commit

Permalink
f Write as required option.
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Nov 2, 2022
1 parent 1160d92 commit 40a170e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning/src/util/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ impl Writeable for Event {
write_tlv_fields!(writer, {
(0, channel_id, required),
(2, user_channel_id, required),
(4, counterparty_node_id, required),
(6, channel_type, required),
(4, Some(counterparty_node_id), required),
(6, Some(channel_type), required),
});
},
// Note that, going forward, all new events must only write data inside of
Expand Down Expand Up @@ -1181,8 +1181,8 @@ impl MaybeReadable for Event {
read_tlv_fields!(reader, {
(0, channel_id, required),
(2, user_channel_id, required),
(4, counterparty_node_id_opt, option),
(6, channel_type_opt, option),
(4, counterparty_node_id_opt, required),
(6, channel_type_opt, required),
});

Ok(Some(Event::ChannelReady {
Expand Down

0 comments on commit 40a170e

Please sign in to comment.