From a5016344efeea64e7783d51ef1c489ab9e12a6cd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 14 May 2018 19:59:31 -0700 Subject: [PATCH] bloom: update due to latest wire updates --- bloom/filter_test.go | 8 ++++---- bloom/merkleblock_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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