From 8791081be361769c4d0b06764f96814570e78317 Mon Sep 17 00:00:00 2001 From: lencap Date: Fri, 9 Aug 2024 16:51:11 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: lencap --- rpcadapters.go | 2 +- upnp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcadapters.go b/rpcadapters.go index 5a6800c5..03905c7b 100644 --- a/rpcadapters.go +++ b/rpcadapters.go @@ -277,7 +277,7 @@ func (b *rpcSyncMgr) SyncPeerID() int32 { return b.syncMgr.SyncPeerID() } -// LocateBlocks returns the hashes of the blocks after the first known block in +// LocateHeaders returns the hashes of the blocks after the first known block in // the provided locators until the provided stop hash or the current tip is // reached, up to a max of wire.MaxBlockHeadersPerMsg hashes. // diff --git a/upnp.go b/upnp.go index c74e4ed7..d06cf52f 100644 --- a/upnp.go +++ b/upnp.go @@ -201,7 +201,7 @@ func getChildDevice(d *device, deviceType string) *device { return nil } -// getChildDevice searches the service list of device for a service with the +// getChildService searches the service list of device for a service with the // given type. func getChildService(d *device, serviceType string) *service { for i := range d.ServiceList.Service {