Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some problematic method name in comment #9319

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contractcourt/channel_arbitrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type WitnessBeacon interface {
payload *hop.Payload,
nextHopOnionBlob []byte) (*WitnessSubscription, error)

// LookupPreImage attempts to lookup a preimage in the global cache.
// LookupPreimage attempts to lookup a preimage in the global cache.
// True is returned for the second argument if the preimage is found.
LookupPreimage(payhash lntypes.Hash) (lntypes.Preimage, bool)

Expand Down
6 changes: 3 additions & 3 deletions htlcswitch/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ type ChannelLink interface {
// total sent/received milli-satoshis.
Stats() (uint64, lnwire.MilliSatoshi, lnwire.MilliSatoshi)

// Peer returns the serialized public key of remote peer with which we
// have the channel link opened.
// PeerPubKey returns the serialized public key of remote peer with
// which we have the channel link opened.
PeerPubKey() [33]byte

// AttachMailBox delivers an active MailBox to the link. The MailBox may
Expand Down Expand Up @@ -440,7 +440,7 @@ type htlcNotifier interface {
NotifyForwardingEvent(key HtlcKey, info HtlcInfo,
eventType HtlcEventType)

// NotifyIncomingLinkFailEvent notifies that a htlc has failed on our
// NotifyLinkFailEvent notifies that a htlc has failed on our
// incoming link. It takes an isReceive bool to differentiate between
// our node's receives and forwards.
NotifyLinkFailEvent(key HtlcKey, info HtlcInfo,
Expand Down
2 changes: 1 addition & 1 deletion witness_beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (p *preimageBeacon) SubscribeUpdates(
return sub, nil
}

// LookupPreImage attempts to lookup a preimage in the global cache. True is
// LookupPreimage attempts to lookup a preimage in the global cache. True is
// returned for the second argument if the preimage is found.
func (p *preimageBeacon) LookupPreimage(
payHash lntypes.Hash) (lntypes.Preimage, bool) {
Expand Down
Loading