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
2024-10-08 13:30:30 +02:00
parent c0e85d36ae
commit a5f3fa17e7
3 changed files with 76 additions and 1 deletions

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{}