bloom: update due to latest wire updates

This commit is contained in:
Olaoluwa Osuntokun 2018-05-14 19:59:31 -07:00
parent 672f737332
commit a5016344ef
No known key found for this signature in database
GPG key ID: 964EA263DD637C21
2 changed files with 5 additions and 5 deletions

View file

@ -83,7 +83,7 @@ func TestFilterInsert(t *testing.T) {
} }
got := bytes.NewBuffer(nil) got := bytes.NewBuffer(nil)
err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding)
if err != nil { if err != nil {
t.Errorf("TestFilterInsert BtcDecode failed: %v\n", err) t.Errorf("TestFilterInsert BtcDecode failed: %v\n", err)
return return
@ -143,7 +143,7 @@ func TestFilterFPRange(t *testing.T) {
f := test.filter f := test.filter
f.AddHash(hash) f.AddHash(hash)
got := bytes.NewBuffer(nil) got := bytes.NewBuffer(nil)
err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding)
if err != nil { if err != nil {
t.Errorf("BtcDecode unexpected error: %v\n", err) t.Errorf("BtcDecode unexpected error: %v\n", err)
continue continue
@ -196,7 +196,7 @@ func TestFilterInsertWithTweak(t *testing.T) {
return return
} }
got := bytes.NewBuffer(nil) got := bytes.NewBuffer(nil)
err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding)
if err != nil { if err != nil {
t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err) t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err)
return return
@ -230,7 +230,7 @@ func TestFilterInsertKey(t *testing.T) {
return return
} }
got := bytes.NewBuffer(nil) got := bytes.NewBuffer(nil)
err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion) err = f.MsgFilterLoad().BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding)
if err != nil { if err != nil {
t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err) t.Errorf("TestFilterInsertWithTweak BtcDecode failed: %v\n", err)
return return

View file

@ -60,7 +60,7 @@ func TestMerkleBlock3(t *testing.T) {
} }
got := bytes.NewBuffer(nil) got := bytes.NewBuffer(nil)
err = mBlock.BtcEncode(got, wire.ProtocolVersion) err = mBlock.BtcEncode(got, wire.ProtocolVersion, wire.LatestEncoding)
if err != nil { if err != nil {
t.Errorf("TestMerkleBlock3 BtcEncode failed: %v", err) t.Errorf("TestMerkleBlock3 BtcEncode failed: %v", err)
return return