multi: typo fixes [skip ci]
This commit is contained in:
1 parent
d397e3e680
commit
5ae2ce984e
6 files changed
+9
-10
No files matched your search
@@ -1104,10 +1104,10 @@ func (c *OpenChannel) MarkBorked() error {
|
|||||||
// reconnection with the remote peer that we're maintaining this channel with.
|
// reconnection with the remote peer that we're maintaining this channel with.
|
||||||
// The information contained within this message is necessary to re-sync our
|
// The information contained within this message is necessary to re-sync our
|
||||||
// commitment chains in the case of a last or only partially processed message.
|
// commitment chains in the case of a last or only partially processed message.
|
||||||
// When the remote party receiver this message one of three things may happen:
|
// When the remote party receives this message one of three things may happen:
|
||||||
//
|
//
|
||||||
// 1. We're fully synced and no messages need to be sent.
|
// 1. We're fully synced and no messages need to be sent.
|
||||||
// 2. We didn't get the last CommitSig message they sent, to they'll re-send
|
// 2. We didn't get the last CommitSig message they sent, so they'll re-send
|
||||||
// it.
|
// it.
|
||||||
// 3. We didn't get the last RevokeAndAck message they sent, so they'll
|
// 3. We didn't get the last RevokeAndAck message they sent, so they'll
|
||||||
// re-send it.
|
// re-send it.
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type OpaqueReason []byte
|
|||||||
// next commitment transaction, with the UpdateFailHTLC propagated backwards in
|
// next commitment transaction, with the UpdateFailHTLC propagated backwards in
|
||||||
// the route to fully undo the HTLC.
|
// the route to fully undo the HTLC.
|
||||||
type UpdateFailHTLC struct {
|
type UpdateFailHTLC struct {
|
||||||
// ChanIDPoint is the particular active channel that this
|
// ChanID is the particular active channel that this
|
||||||
// UpdateFailHTLC is bound to.
|
// UpdateFailHTLC is bound to.
|
||||||
ChanID ChannelID
|
ChanID ChannelID
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -919,9 +919,9 @@ func (l *channelLink) loadAndRemove() error {
|
|||||||
// This goroutine reads messages from the upstream (remote) peer, and also from
|
// This goroutine reads messages from the upstream (remote) peer, and also from
|
||||||
// downstream channel managed by the channel link. In the event that an htlc
|
// downstream channel managed by the channel link. In the event that an htlc
|
||||||
// needs to be forwarded, then send-only forward handler is used which sends
|
// needs to be forwarded, then send-only forward handler is used which sends
|
||||||
// htlc packets to the switch. Additionally, the this goroutine handles acting
|
// htlc packets to the switch. Additionally, this goroutine handles acting upon
|
||||||
// upon all timeouts for any active HTLCs, manages the channel's revocation
|
// all timeouts for any active HTLCs, manages the channel's revocation window,
|
||||||
// window, and also the htlc trickle queue+timer for this active channels.
|
// and also the htlc trickle queue+timer for this active channels.
|
||||||
//
|
//
|
||||||
// NOTE: This MUST be run as a goroutine.
|
// NOTE: This MUST be run as a goroutine.
|
||||||
func (l *channelLink) htlcManager() {
|
func (l *channelLink) htlcManager() {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ var (
|
|||||||
|
|
||||||
// MailBox is an interface which represents a concurrent-safe, in-order
|
// MailBox is an interface which represents a concurrent-safe, in-order
|
||||||
// delivery queue for messages from the network and also from the main switch.
|
// delivery queue for messages from the network and also from the main switch.
|
||||||
// This struct servers as a buffer between incoming messages, and messages to
|
// This struct serves as a buffer between incoming messages, and messages to
|
||||||
// the handled by the link. Each of the mutating methods within this interface
|
// the handled by the link. Each of the mutating methods within this interface
|
||||||
// should be implemented in a non-blocking manner.
|
// should be implemented in a non-blocking manner.
|
||||||
type MailBox interface {
|
type MailBox interface {
|
||||||
|
|||||||
+1
-2
@@ -5414,8 +5414,7 @@ func (lc *LightningChannel) MalformedFailHTLC(htlcIndex uint64,
|
|||||||
// ReceiveFailHTLC attempts to cancel a targeted HTLC by its log index,
|
// ReceiveFailHTLC attempts to cancel a targeted HTLC by its log index,
|
||||||
// inserting an entry which will remove the target log entry within the next
|
// inserting an entry which will remove the target log entry within the next
|
||||||
// commitment update. This method should be called in response to the upstream
|
// commitment update. This method should be called in response to the upstream
|
||||||
// party cancelling an outgoing HTLC. The value of the failed HTLC is returned
|
// party cancelling an outgoing HTLC.
|
||||||
// along with an error indicating success.
|
|
||||||
func (lc *LightningChannel) ReceiveFailHTLC(htlcIndex uint64, reason []byte,
|
func (lc *LightningChannel) ReceiveFailHTLC(htlcIndex uint64, reason []byte,
|
||||||
) error {
|
) error {
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ type OpaqueReason []byte
|
|||||||
// next commitment transaction, with the UpdateFailHTLC propagated backwards in
|
// next commitment transaction, with the UpdateFailHTLC propagated backwards in
|
||||||
// the route to fully undo the HTLC.
|
// the route to fully undo the HTLC.
|
||||||
type UpdateFailHTLC struct {
|
type UpdateFailHTLC struct {
|
||||||
// ChanIDPoint is the particular active channel that this
|
// ChanID is the particular active channel that this
|
||||||
// UpdateFailHTLC is bound to.
|
// UpdateFailHTLC is bound to.
|
||||||
ChanID ChannelID
|
ChanID ChannelID
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user