Skip to content

Commit a4cb3c2

Browse files
committed
relax the requirement on the SubOpts partial field.
1 parent 8e42e17 commit a4cb3c2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pubsub/gossipsub/partial-messages.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ replacement to "full" messages. A node requests a peer to use partial messages
109109
for a specific topic by setting the `partial` field in the `SubOpts` message.
110110
The `SubOpts` message is how a peer subscribes to a topic.
111111

112-
If a node receives a subscribe request with the `partial` field set to true, it
113-
MUST send partial messages instead of full messages.
112+
If a node receives a subscribe request with the `partial` field set to true, and
113+
it supports the partial message extension, it MUST send partial messages instead
114+
of full messages.
114115

115-
It is an error to set the partial field true if the peer does not support
116-
partial extensions.
116+
If a node does not support the partial message extension, it MUST ignore the
117+
`partial` field. This is the default behavior of protobuf parsers.
117118

118119
The partial field value MUST be ignored when a peer sends an unsubscribe message
119120
`SubOpts.subscribe=false`.

0 commit comments

Comments
 (0)