btcjson: remove instances of the extended gcs filter

This commit is contained in:
Olaoluwa Osuntokun 2018-07-06 15:47:02 -07:00
parent 298efd8359
commit a05f62fabd
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -322,32 +322,32 @@ func TestChainSvrCmds(t *testing.T) {
name: "getcfilter",
newCmd: func() (interface{}, error) {
return btcjson.NewCmd("getcfilter", "123",
wire.GCSFilterExtended)
wire.GCSFilterRegular)
},
staticCmd: func() interface{} {
return btcjson.NewGetCFilterCmd("123",
wire.GCSFilterExtended)
wire.GCSFilterRegular)
},
marshalled: `{"jsonrpc":"1.0","method":"getcfilter","params":["123",1],"id":1}`,
marshalled: `{"jsonrpc":"1.0","method":"getcfilter","params":["123",0],"id":1}`,
unmarshalled: &btcjson.GetCFilterCmd{
Hash: "123",
FilterType: wire.GCSFilterExtended,
FilterType: wire.GCSFilterRegular,
},
},
{
name: "getcfilterheader",
newCmd: func() (interface{}, error) {
return btcjson.NewCmd("getcfilterheader", "123",
wire.GCSFilterExtended)
wire.GCSFilterRegular)
},
staticCmd: func() interface{} {
return btcjson.NewGetCFilterHeaderCmd("123",
wire.GCSFilterExtended)
wire.GCSFilterRegular)
},
marshalled: `{"jsonrpc":"1.0","method":"getcfilterheader","params":["123",1],"id":1}`,
marshalled: `{"jsonrpc":"1.0","method":"getcfilterheader","params":["123",0],"id":1}`,
unmarshalled: &btcjson.GetCFilterHeaderCmd{
Hash: "123",
FilterType: wire.GCSFilterExtended,
FilterType: wire.GCSFilterRegular,
},
},
{