Commit Graph

4 Commits

Author SHA1 Message Date
Donald Adu-Poku
3c6ff2852d wire: assert MaxMessagePayload limit in tests.
This adds an additional check to Msg tests ensuring their max
payload lengths do not exceed MaxMessagePayload.
2019-06-20 12:28:41 -05:00
Hamid
9f0530837e wire: Rename extended errors to malformed errors.
This changes a test's name from ExtendedErrors to MalformedErrors
to makes it naming convention consistent with the other tests of
this type.
2019-06-07 13:51:46 -05:00
Hamid
bf2ae11be8 wire: Fix MsgCFTypes maximum payload length.
This commit fixes and improves MsgCFTypes maximum payload length.
The counter of FilterType in MsgCFTypes is varInt which for 256
FilterType it has 3 bytes size.
2019-03-25 17:01:20 -05:00
Hamid
adc41abf59 wire: Add tests for MsgCFTypes
This adds standard wire tests for MsgCFTypes. Things done in these
commit:
- Add standard wire test for MsgCFTypes
- Fix a potential bug at BtcEncode: return an error if the number
	of filter types exceed the maximum number of supported filter
	types (256)
- Add an extended error checking for checking malformed encoded
	data return correct errors.
2019-02-16 19:07:08 -06:00