cba523ae30
This commit modifies the NewPayloadFromReader to apply known presence/omission contraints in the event that the tlv parser returns an unknown required type failure. Now that the parser has been modified to finished parsing the stream to obtain a proper parsed type set, we can accurately apply these higher level validation checks. This overrides required type failures, such that they are only returned if the sender properly abided by the constraints on fields for which we know. The unit tests are updated to create otherwise valid payloads that then return unknown required type failures. In one case, a test which previously returned an unknown required type failure is made to return an included failure for the sid, indicating the unknown required type 0 is being overruled. |
||
---|---|---|
.. | ||
error_encryptor.go | ||
forwarding_info.go | ||
iterator_test.go | ||
iterator.go | ||
log.go | ||
network.go | ||
payload_test.go | ||
payload.go | ||
type.go |