multi: Fix typos [skip ci]
This commit is contained in:
139 files changed
+254
-254
No files matched your search
+3
-3
@@ -66,8 +66,8 @@ const (
|
||||
// bytes, leaving only the root_share and set_id.
|
||||
minAMPLength = 64
|
||||
|
||||
// maxAMPLength is the maximum legnth of a serialized AMP TLV record,
|
||||
// which occurs when the truncated endoing of a child_index takes 2
|
||||
// maxAMPLength is the maximum length of a serialized AMP TLV record,
|
||||
// which occurs when the truncated encoding of a child_index takes 2
|
||||
// bytes.
|
||||
maxAMPLength = 68
|
||||
)
|
||||
@@ -100,7 +100,7 @@ func (a *AMP) PayloadSize() uint64 {
|
||||
return 32 + 32 + tlv.SizeTUint32(a.childIndex)
|
||||
}
|
||||
|
||||
// String returns a human-readble description of the amp payload fields.
|
||||
// String returns a human-readable description of the amp payload fields.
|
||||
func (a *AMP) String() string {
|
||||
if a == nil {
|
||||
return "<nil>"
|
||||
|
||||
+2
-2
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// AmtOnionType is the type used in the onion to refrence the amount to
|
||||
// AmtOnionType is the type used in the onion to reference the amount to
|
||||
// send to the next hop.
|
||||
AmtOnionType tlv.Type = 2
|
||||
|
||||
// LockTimeTLV is the type used in the onion to refenernce the CLTV
|
||||
// LockTimeTLV is the type used in the onion to reference the CLTV
|
||||
// value that should be used for the next hop's HTLC.
|
||||
LockTimeOnionType tlv.Type = 4
|
||||
|
||||
|
||||
Reference in new issue
Block a user