This commit is contained in:
David Muthy 2025-03-08 12:16:55 +08:00 committed by GitHub
commit 5c71eb4087
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import (
"testing" "testing"
) )
// TestFilterCLearLatest tests the MsgFilterLoad API against the latest protocol // TestFilterLoadLatest tests the MsgFilterLoad API against the latest protocol
// version. // version.
func TestFilterLoadLatest(t *testing.T) { func TestFilterLoadLatest(t *testing.T) {
pver := ProtocolVersion pver := ProtocolVersion

View file

@ -1008,7 +1008,7 @@ func writeOutPointBuf(w io.Writer, pver uint32, version int32, op *OutPoint,
return err 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 // 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 // followed by the bytes themselves. An error is returned if the length is
// greater than the passed maxAllowed parameter which helps protect against // greater than the passed maxAllowed parameter which helps protect against

View file

@ -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. // with witness inputs accurately.
func TestWTxSha(t *testing.T) { func TestWTxSha(t *testing.T) {
hashStrTxid := "0f167d1385a84d1518cfee208b653fc9163b605ccf1b75347e2850b3e2eb19f3" hashStrTxid := "0f167d1385a84d1518cfee208b653fc9163b605ccf1b75347e2850b3e2eb19f3"