// TestGetBlockTxnsFeeFilterVersion tests the MsgGetBlockTxns API against the protocol
// prior to version BIP0152Version.
TestGetBlockTxnsFeeFilterVersion tests the MsgGetBlockTxns API against the protocol
prior to version BIP0152Version.
// TestGetBlockTxnsFeeFilterVersion tests the MsgGetBlockTxns API against the protocol // prior to version BIP0152Version .
func TestGetBlockTxnsFeeFilterVersion(t *testing.T) {
	pver := BIP0152Version - 1
	enc := BaseEncoding
	msg := NewMsgGetBlockTxns(chainhash.Hash{}, nil)
	var buf bytes.Buffer
	err := msg.BchEncode(&buf, pver, enc)
	if err == nil {
		t.Errorf("encode of MsgGetBlockTxns succeeded when it should " +
			"have failed")
	}
	readmsg := MsgGetBlockTxns{}
	err = readmsg.BchDecode(&buf, pver, enc)
	if err == nil {
		t.Errorf("decode of MsgGetBlockTxns succeeded when it should " +
			"have failed")
	}
}
func TestGetBlockTxnsFeeFilterVersion ( t * testing . T ) { pver := BIP0152Version - 1 enc := BaseEncoding msg := NewMsgGetBlockTxns ( chainhash . Hash { } , nil ) var buf bytes . Buffer err := msg . BchEncode ( & buf , pver , enc ) if err == nil { t . Errorf ( " " + " " ) } readmsg := MsgGetBlockTxns { } err = readmsg . BchDecode ( & buf , pver , enc ) if err == nil { t . Errorf ( " " + " " ) } }
TestGetBlockTxnsFeeFilterVersion tests the MsgGetBlockTxns API against the protocol
prior to version BIP0152Version.
TestGetBlockTxnsFeeFilterVersion tests the MsgGetBlockTxns API against the protocol prior to version BIP0152Version .
// Use the protocol version just prior to BIP0152Version changes. // Test encode with old protocol version. // Test decode with old protocol version.