Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions lnwire/channel_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,12 @@ func (a *ChannelUpdate1) Decode(r io.Reader, _ uint32) error {
&a.HtlcMinimumMsat,
&a.BaseFee,
&a.FeeRate,
&a.HtlcMaximumMsat,
)
if err != nil {
return err
}

// Now check whether the max HTLC field is present and read it if so.
if a.MessageFlags.HasMaxHtlc() {
if err := ReadElements(r, &a.HtlcMaximumMsat); err != nil {
return err
}
}

var tlvRecords ExtraOpaqueData
if err := ReadElements(r, &tlvRecords); err != nil {
return err
Expand Down
Loading