diff --git a/bloom/filter_test.go b/bloom/filter_test.go index 21cfe68..6589d04 100644 --- a/bloom/filter_test.go +++ b/bloom/filter_test.go @@ -83,7 +83,7 @@ func TestFilterInsert(t *testing.T) { } got := bytes.NewBuffer(nil) - err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) + err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding) if err != nil { t.Errorf("TestFilterInsert BtcDecode failed: %v\n", err) return @@ -143,7 +143,7 @@ func TestFilterFPRange(t *testing.T) { f := test.filter f.AddHash(hash) got := bytes.NewBuffer(nil) - err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) + err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding) if err != nil { t.Errorf("BtcDecode unexpected error: %v\n", err) continue @@ -196,7 +196,7 @@ func TestFilterInsertWithTweak(t *testing.T) { return } got := bytes.NewBuffer(nil) - err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) + err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding) if err != nil { t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err) return @@ -230,7 +230,7 @@ func TestFilterInsertKey(t *testing.T) { return } got := bytes.NewBuffer(nil) - err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) + err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding) if err != nil { t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err) return diff --git a/bloom/merkleblock_test.go b/bloom/merkleblock_test.go index d236d34..bd4a3dc 100644 --- a/bloom/merkleblock_test.go +++ b/bloom/merkleblock_test.go @@ -60,7 +60,7 @@ func TestMerkleBlock3(t *testing.T) { } got := bytes.NewBuffer(nil) - err = mBlock.BtcEncode(got, wire.ProtocolVersion) + err = mBlock.BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding) if err != nil { t.Errorf("TestMerkleBlock3 BtcEncode failed: %v", err) return