multi: fix a variety of typos throughout the repo
This commit is contained in:
1 parent
49df1b0737
commit
40c7bac3aa
38 files changed
+311
-311
No files matched your search
@@ -23,7 +23,7 @@ type CommitRevocation struct {
|
||||
// CommitRevocation applies to.
|
||||
ChannelPoint *wire.OutPoint
|
||||
|
||||
// Revocation is the pre-image to the revocation hash of the now prior
|
||||
// Revocation is the preimage to the revocation hash of the now prior
|
||||
// commitment transaction.
|
||||
//
|
||||
// If the received revocation is the all zeroes hash ('0' * 32), then
|
||||
@@ -41,7 +41,7 @@ type CommitRevocation struct {
|
||||
|
||||
// NextRevocationHash is the next revocation hash which should be added
|
||||
// to the queue on unused revocation hashes for the remote peer. This
|
||||
// revocation hash will be used within any HTLC's included within this
|
||||
// revocation hash will be used within any HTLCs included within this
|
||||
// next commitment transaction.
|
||||
NextRevocationHash [32]byte
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ import (
|
||||
"github.com/roasbeef/btcutil"
|
||||
)
|
||||
|
||||
// CommitSignature is sent by either side to stage any pending HTLC's in the
|
||||
// CommitSignature is sent by either side to stage any pending HTLCs in the
|
||||
// receiver's pending set which has not explicitly been rejected via an
|
||||
// HTLCAddReject message. Implicitly, the new commitment transaction constructed
|
||||
// which has been signed by CommitSig includes all HTLC's in the remote node's
|
||||
// which has been signed by CommitSig includes all HTLCs in the remote node's
|
||||
// pending set. A CommitSignature message may be sent after a series of HTLCAdd
|
||||
// messages in order to batch add several HTLC's with a single signature
|
||||
// covering all implicitly accepted HTLC's.
|
||||
// messages in order to batch add several HTLCs with a single signature
|
||||
// covering all implicitly accepted HTLCs.
|
||||
type CommitSignature struct {
|
||||
// ChannelPoint uniquely identifies to which currently active channel this
|
||||
// CommitSignature applies to.
|
||||
@@ -23,7 +23,7 @@ type CommitSignature struct {
|
||||
|
||||
// LogIndex is the index into the receiver's HTLC log to which this
|
||||
// commitment signature covers. In order to properly verify this
|
||||
// signature, the receiver should include all the HTLC's within their
|
||||
// signature, the receiver should include all the HTLCs within their
|
||||
// log with an index less-than-or-equal to the listed log-index.
|
||||
LogIndex uint64
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
// HTLC to his remote commitment transaction. In addition to information
|
||||
// detailing the value, and contract type of the HTLC, and onion blob is also
|
||||
// included which allows Bob to derive the next hop in the route. The HTLC
|
||||
// added by this message is to be added to the remote node's "pending" HTLC's.
|
||||
// added by this message is to be added to the remote node's "pending" HTLCs.
|
||||
// A subsequent CommitSignature message will move the pending HTLC to the newly
|
||||
// created commitment transaction, marking them as "staged".
|
||||
type HTLCAddRequest struct {
|
||||
@@ -40,8 +40,8 @@ type HTLCAddRequest struct {
|
||||
|
||||
// RedemptionHashes are the hashes to be used within the HTLC script.
|
||||
// An HTLC is only fufilled once Bob is provided with the required
|
||||
// number of pre-images for each of the listed hashes. For regular HTLC's
|
||||
// this slice only has one hash. However, for "multi-sig" HTLC's, the
|
||||
// number of preimages for each of the listed hashes. For regular HTLCs
|
||||
// this slice only has one hash. However, for "multi-sig" HTLCs, the
|
||||
// length of this slice should be N.
|
||||
RedemptionHashes [][32]byte
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
// presented in order to support N-of-M HTLC contracts. A subsequent
|
||||
// CommitSignature message will be sent by Alice to "lock-in" the removal of the
|
||||
// specified HTLC, possible containing a batch signature covering several settled
|
||||
// HTLC's.
|
||||
// HTLCs.
|
||||
type HTLCSettleRequest struct {
|
||||
// ChannelPoint references an active channel which holds the HTLC to be
|
||||
// settled.
|
||||
|
||||
+3
-3
@@ -24,8 +24,8 @@ const MaxSliceLength = 65535
|
||||
// key script.
|
||||
type PkScript []byte
|
||||
|
||||
// HTLCKey is an identifier used to uniquely identify any HTLC's transmitted
|
||||
// between Alice and Bob. In order to cancel, timeout, or settle HTLC's this
|
||||
// HTLCKey is an identifier used to uniquely identify any HTLCs transmitted
|
||||
// between Alice and Bob. In order to cancel, timeout, or settle HTLCs this
|
||||
// identifier should be used to allow either side to easily locate and modify
|
||||
// any staged or pending HTLCs.
|
||||
// TODO(roasbeef): change to HTLCIdentifier?
|
||||
@@ -36,7 +36,7 @@ type HTLCKey int64
|
||||
// HTLC lists on either side will increment this height. As a result this value
|
||||
// should always be monotonically increasing. Any CommitSignature or
|
||||
// CommitRevocation messages will reference a value for the commitment height
|
||||
// up to which it covers. HTLC's are only explicitly excluded by sending
|
||||
// up to which it covers. HTLCs are only explicitly excluded by sending
|
||||
// HTLCReject messages referencing a particular HTLCKey.
|
||||
type CommitHeight uint64
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ type SingleFundingComplete struct {
|
||||
// RevocationKey is the initial key to be used for the revocation
|
||||
// clause within the self-output of the initiators's commitment
|
||||
// transaction. Once an initial new state is created, the initiator
|
||||
// will send a pre-image which will allow the initiator to sweep the
|
||||
// will send a preimage which will allow the initiator to sweep the
|
||||
// initiator's funds if the violate the contract.
|
||||
RevocationKey *btcec.PublicKey
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ type SingleFundingRequest struct {
|
||||
// ChannelType represents the type of channel this request would like
|
||||
// to open. At this point, the only supported channels are type 0
|
||||
// channels, which are channels with regular commitment transactions
|
||||
// utilizing HTLC's for payments.
|
||||
// utilizing HTLCs for payments.
|
||||
ChannelType uint8
|
||||
|
||||
// CoinType represents which blockchain the channel will be opened
|
||||
|
||||
@@ -33,7 +33,7 @@ type SingleFundingResponse struct {
|
||||
// RevocationKey is the initial key to be used for the revocation
|
||||
// clause within the self-output of the responder's commitment
|
||||
// transaction. Once an initial new state is created, the responder
|
||||
// will send a pre-image which will allow the initiator to sweep the
|
||||
// will send a preimage which will allow the initiator to sweep the
|
||||
// responder's funds if the violate the contract.
|
||||
RevocationKey *btcec.PublicKey
|
||||
|
||||
|
||||
Reference in new issue
Block a user