lnwire: fix typo in ChannelUpdateAnnouncement, Mstat -> Msat
This commit is contained in:
parent
1e540b0f99
commit
f881e0a356
@ -37,11 +37,11 @@ type ChannelUpdateAnnouncement struct {
|
|||||||
// to this node.
|
// to this node.
|
||||||
TimeLockDelta uint16
|
TimeLockDelta uint16
|
||||||
|
|
||||||
// HtlcMinimumMstat is the minimum HTLC value which will be accepted.
|
// HtlcMinimumMsat is the minimum HTLC value which will be accepted.
|
||||||
HtlcMinimumMstat uint32
|
HtlcMinimumMsat uint32
|
||||||
|
|
||||||
// FeeBaseMstat...
|
// FeeBaseMstat...
|
||||||
FeeBaseMstat uint32
|
FeeBaseMsat uint32
|
||||||
|
|
||||||
// FeeProportionalMillionths...
|
// FeeProportionalMillionths...
|
||||||
FeeProportionalMillionths uint32
|
FeeProportionalMillionths uint32
|
||||||
@ -78,8 +78,8 @@ func (c *ChannelUpdateAnnouncement) Decode(r io.Reader, pver uint32) error {
|
|||||||
&c.Timestamp,
|
&c.Timestamp,
|
||||||
&c.Flags,
|
&c.Flags,
|
||||||
&c.TimeLockDelta,
|
&c.TimeLockDelta,
|
||||||
&c.HtlcMinimumMstat,
|
&c.HtlcMinimumMsat,
|
||||||
&c.FeeBaseMstat,
|
&c.FeeBaseMsat,
|
||||||
&c.FeeProportionalMillionths,
|
&c.FeeProportionalMillionths,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -100,8 +100,8 @@ func (c *ChannelUpdateAnnouncement) Encode(w io.Writer, pver uint32) error {
|
|||||||
c.Timestamp,
|
c.Timestamp,
|
||||||
c.Flags,
|
c.Flags,
|
||||||
c.TimeLockDelta,
|
c.TimeLockDelta,
|
||||||
c.HtlcMinimumMstat,
|
c.HtlcMinimumMsat,
|
||||||
c.FeeBaseMstat,
|
c.FeeBaseMsat,
|
||||||
c.FeeProportionalMillionths,
|
c.FeeProportionalMillionths,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -164,8 +164,8 @@ func (c *ChannelUpdateAnnouncement) DataToSign() ([]byte, error) {
|
|||||||
c.Timestamp,
|
c.Timestamp,
|
||||||
c.Flags,
|
c.Flags,
|
||||||
c.TimeLockDelta,
|
c.TimeLockDelta,
|
||||||
c.HtlcMinimumMstat,
|
c.HtlcMinimumMsat,
|
||||||
c.FeeBaseMstat,
|
c.FeeBaseMsat,
|
||||||
c.FeeProportionalMillionths,
|
c.FeeProportionalMillionths,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -13,8 +13,8 @@ func TestChannelUpdateAnnouncementEncodeDecode(t *testing.T) {
|
|||||||
Timestamp: maxUint32,
|
Timestamp: maxUint32,
|
||||||
Flags: maxUint16,
|
Flags: maxUint16,
|
||||||
TimeLockDelta: maxUint16,
|
TimeLockDelta: maxUint16,
|
||||||
HtlcMinimumMstat: maxUint32,
|
HtlcMinimumMsat: maxUint32,
|
||||||
FeeBaseMstat: maxUint32,
|
FeeBaseMsat: maxUint32,
|
||||||
FeeProportionalMillionths: maxUint32,
|
FeeProportionalMillionths: maxUint32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user