mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-23 15:34:22 +01:00
lnwire: fix typo in ChannelUpdateAnnouncement, Mstat -> Msat
This commit is contained in:
@@ -37,11 +37,11 @@ type ChannelUpdateAnnouncement struct {
|
||||
// to this node.
|
||||
TimeLockDelta uint16
|
||||
|
||||
// HtlcMinimumMstat is the minimum HTLC value which will be accepted.
|
||||
HtlcMinimumMstat uint32
|
||||
// HtlcMinimumMsat is the minimum HTLC value which will be accepted.
|
||||
HtlcMinimumMsat uint32
|
||||
|
||||
// FeeBaseMstat...
|
||||
FeeBaseMstat uint32
|
||||
FeeBaseMsat uint32
|
||||
|
||||
// FeeProportionalMillionths...
|
||||
FeeProportionalMillionths uint32
|
||||
@@ -78,8 +78,8 @@ func (c *ChannelUpdateAnnouncement) Decode(r io.Reader, pver uint32) error {
|
||||
&c.Timestamp,
|
||||
&c.Flags,
|
||||
&c.TimeLockDelta,
|
||||
&c.HtlcMinimumMstat,
|
||||
&c.FeeBaseMstat,
|
||||
&c.HtlcMinimumMsat,
|
||||
&c.FeeBaseMsat,
|
||||
&c.FeeProportionalMillionths,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -100,8 +100,8 @@ func (c *ChannelUpdateAnnouncement) Encode(w io.Writer, pver uint32) error {
|
||||
c.Timestamp,
|
||||
c.Flags,
|
||||
c.TimeLockDelta,
|
||||
c.HtlcMinimumMstat,
|
||||
c.FeeBaseMstat,
|
||||
c.HtlcMinimumMsat,
|
||||
c.FeeBaseMsat,
|
||||
c.FeeProportionalMillionths,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -164,8 +164,8 @@ func (c *ChannelUpdateAnnouncement) DataToSign() ([]byte, error) {
|
||||
c.Timestamp,
|
||||
c.Flags,
|
||||
c.TimeLockDelta,
|
||||
c.HtlcMinimumMstat,
|
||||
c.FeeBaseMstat,
|
||||
c.HtlcMinimumMsat,
|
||||
c.FeeBaseMsat,
|
||||
c.FeeProportionalMillionths,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
@@ -13,8 +13,8 @@ func TestChannelUpdateAnnouncementEncodeDecode(t *testing.T) {
|
||||
Timestamp: maxUint32,
|
||||
Flags: maxUint16,
|
||||
TimeLockDelta: maxUint16,
|
||||
HtlcMinimumMstat: maxUint32,
|
||||
FeeBaseMstat: maxUint32,
|
||||
HtlcMinimumMsat: maxUint32,
|
||||
FeeBaseMsat: maxUint32,
|
||||
FeeProportionalMillionths: maxUint32,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user