Skip to content

Commit 74f53a5

Browse files
committed
clarification on ordering in case of multiple TLVs extending the same message
1 parent 3713ef9 commit 74f53a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

03-Protocol-Overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ Each TLV-encoded field follows this format:
152152
### Usage Guidelines
153153

154154
- **TLV fields MUST be placed at the end of the message payload.** This ensures compatibility with existing Stratum V2 messages.
155-
- **Order of TLV fields is not significant.** Since all extensions are negotiated beforehand, the recipient MUST scan for TLV fields using their Type identifiers rather than relying on a fixed order.
155+
- **Order of TLV fields from different extensions is not significant.** Since all extensions are negotiated beforehand, the recipient MUST scan for TLV fields using their Type identifiers rather than relying on a fixed order.
156+
- **Order of TLV fields within the same extension MUST be respected.** If an extension defines multiple TLV fields to extend a single message, they **MUST** appear in the exact order specified by the extension’s documentation.
156157
- **Unknown TLV fields MUST be ignored.** If a device receives a TLV field with an unrecognized Type, it MUST skip over it using the Length field.
157158
- **Length constraints MUST be respected.** Each extension must specify the valid length range for its TLV fields. If a TLV field exceeds the maximum length allowed by its specification, the recipient MUST reject the message.
158159

0 commit comments

Comments
 (0)