From d90f2cdac2096c8562b9a22e1f6ac2cc7ecc4ce7 Mon Sep 17 00:00:00 2001 From: damuzhi0810 Date: Fri, 24 Jan 2025 00:51:55 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: damuzhi0810 --- wire/msgfilterload_test.go | 2 +- wire/msgtx.go | 2 +- wire/msgtx_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wire/msgfilterload_test.go b/wire/msgfilterload_test.go index fb045ffa..08cee30d 100644 --- a/wire/msgfilterload_test.go +++ b/wire/msgfilterload_test.go @@ -11,7 +11,7 @@ import ( "testing" ) -// TestFilterCLearLatest tests the MsgFilterLoad API against the latest protocol +// TestFilterLoadLatest tests the MsgFilterLoad API against the latest protocol // version. func TestFilterLoadLatest(t *testing.T) { pver := ProtocolVersion diff --git a/wire/msgtx.go b/wire/msgtx.go index e4f3051c..6ad87029 100644 --- a/wire/msgtx.go +++ b/wire/msgtx.go @@ -1008,7 +1008,7 @@ func writeOutPointBuf(w io.Writer, pver uint32, version int32, op *OutPoint, return err } -// readScript reads a variable length byte array that represents a transaction +// readScriptBuf reads a variable length byte array that represents a transaction // script. It is encoded as a varInt containing the length of the array // followed by the bytes themselves. An error is returned if the length is // greater than the passed maxAllowed parameter which helps protect against diff --git a/wire/msgtx_test.go b/wire/msgtx_test.go index 62d57098..20458be0 100644 --- a/wire/msgtx_test.go +++ b/wire/msgtx_test.go @@ -184,7 +184,7 @@ func TestTxHash(t *testing.T) { } } -// TestTxSha tests the ability to generate the wtxid, and txid of a transaction +// TestWTxSha tests the ability to generate the wtxid, and txid of a transaction // with witness inputs accurately. func TestWTxSha(t *testing.T) { hashStrTxid := "0f167d1385a84d1518cfee208b653fc9163b605ccf1b75347e2850b3e2eb19f3"