multi: rename due to required maxHTLC bit

We rename `ChanUpdateOptionMaxHtlc` to `ChanUpdateRequiredMaxHtlc`
as with the latest changes it is now required.

Similarly, rename `validateOptionalFields` to
`ValidateChannelUpdateFields`, export it to use it in a later commit.
This commit is contained in:
bitromortac committed 2023-02-21 11:10:39 +01:00
1 parent 581e195bfe
commit dd5273c88c
14 files changed
+24 -23

No files matched your search

+1 -1
View File
@@ -772,7 +772,7 @@ func TestLightningWireProtocol(t *testing.T) {
// as being part of the ChannelUpdate, to pass
// serialization tests, as it will be ignored if the bit
// is not set.
if msgFlags&ChanUpdateOptionMaxHtlc == 0 {
if msgFlags&ChanUpdateRequiredMaxHtlc == 0 {
maxHtlc = 0
}