From 4eeefd0850ee50bb1a379a59e8193b37c3ba1473 Mon Sep 17 00:00:00 2001 From: linchizhen Date: Fri, 31 May 2024 17:29:27 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: linchizhen --- p2p/peering.go | 2 +- rpc/client/dcrwallet/methods.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/peering.go b/p2p/peering.go index 9cf808001..f9d3ceacf 100644 --- a/p2p/peering.go +++ b/p2p/peering.go @@ -2021,7 +2021,7 @@ func (rp *RemotePeer) PublishTransactions(ctx context.Context, txs ...*wire.MsgT return nil } -// PublishTransactions pushes an inventory message advertising transaction +// PublishMixMessages pushes an inventory message advertising transaction // hashes of txs. func (rp *RemotePeer) PublishMixMessages(ctx context.Context, msgs ...mixing.Message) error { const opf = "remotepeer(%v).PublishMixMessages" diff --git a/rpc/client/dcrwallet/methods.go b/rpc/client/dcrwallet/methods.go index 37bc5fff7..0fbd6c571 100644 --- a/rpc/client/dcrwallet/methods.go +++ b/rpc/client/dcrwallet/methods.go @@ -701,7 +701,7 @@ func (c *Client) FundRawTransaction(ctx context.Context, rawhex string, fundAcco return res, err } -// GetInfoWallet calls the getinfo method. It is named differently to avoid a +// GetInfo calls the getinfo method. It is named differently to avoid a // naming clash for dcrd clients with a GetInfo method. func (c *Client) GetInfo(ctx context.Context) (*types.InfoWalletResult, error) { res := new(types.InfoWalletResult)