From 4c844bfb77e4c23462f7ba5ea5ab94fbaa359b7c Mon Sep 17 00:00:00 2001 From: thirdkeyword Date: Thu, 28 Nov 2024 17:07:18 +0800 Subject: [PATCH] chore: fix some problematic method name in comment Signed-off-by: thirdkeyword --- contractcourt/channel_arbitrator.go | 2 +- htlcswitch/interfaces.go | 6 +++--- witness_beacon.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contractcourt/channel_arbitrator.go b/contractcourt/channel_arbitrator.go index ffa4a5d6e2..66fad197ce 100644 --- a/contractcourt/channel_arbitrator.go +++ b/contractcourt/channel_arbitrator.go @@ -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) diff --git a/htlcswitch/interfaces.go b/htlcswitch/interfaces.go index a3f4ff9a9a..17ea5071af 100644 --- a/htlcswitch/interfaces.go +++ b/htlcswitch/interfaces.go @@ -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 @@ -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, diff --git a/witness_beacon.go b/witness_beacon.go index 2bc3c08509..f4e9503147 100644 --- a/witness_beacon.go +++ b/witness_beacon.go @@ -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) {