mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-15 04:11:37 +01:00
Merge d90f2cdac2
into c7191d2913
This commit is contained in:
commit
5c71eb4087
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue