lnwire21: update Msat and TrueBoolean

Add the TrueBoolean type along with its Record method. Also update the
Millisatoshi type with a Record method. Both of these will be used in an
upcoming commit which adjusts a mission control migration to use pure
TLV types.
This commit is contained in:
Elle Mouton committed 2024-11-01 08:59:54 +02:00
1 parent c0e85d36ae
commit a5f3fa17e7
3 files changed
+76 -1

No files matched your search

+1 -1
View File
@@ -411,7 +411,7 @@ func decodeDisableFlags(r io.Reader, val interface{}, buf *[8]byte,
}
// TrueBoolean is a record that indicates true or false using the presence of
// the record. If the record is absent, it indicates false. If it is presence,
// the record. If the record is absent, it indicates false. If it is present,
// it indicates true.
type TrueBoolean struct{}