-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pubsubTopic
field to index
#492
Conversation
This makes it not backward compatible as the client needs to be aware of the If we want to make it backward compatible, then I suggest to default to the default pubsub topiic when not present. |
Agreed. Sorry, my description should have been more clear. I meant that protobuf encoding/decoding won't break outright, which I hoped would be enough reason not to introduce another
I'd prefer to avoid this in the long run, as it essentially requires awkwardly injecting data into a deserialised object and could wrongly lead to |
I believe this change is straightforward and can be implemented by store clients easily, even before it's implemented by nim-waku. |
* master: RFC16: add version call (#505) fix(noise): update RFC to implementation (#508) fixup: 37/WAKU2-NOISE fix images paths (#506) New RFC: 37/WAKU2-NOISE-SESSIONS (#504) 36/WAKU2-BINDINGS-API (#501) docs(16/WAKU2-RPC): add ENR to waku info (#502) Adding 35/WAKU2-NOISE to menu (#500) add RFC33 to index (#499) feat: 32/RLN raw spec New RFC: 35/WAKU2-NOISE (#496) Update on the rln registration figure to match the current spec (#497) 33/WAKU-DISCV5: Add first raw version (#487) Add pubsubTopic field to index (#492) Fix markdown links (#493) Categorize 22 & 31 (#490) Changed PB Timestamp index to 10 (#491) 13/14/16/21: Change in timestamp format (#483) add: RFC31 copyright statement (#489) 17/WAKU-RLN-RELAY: Revise spec for its draft version (#484)
* master: RFC16: add version call (#505) fix(noise): update RFC to implementation (#508) fixup: 37/WAKU2-NOISE fix images paths (#506) New RFC: 37/WAKU2-NOISE-SESSIONS (#504) 36/WAKU2-BINDINGS-API (#501) docs(16/WAKU2-RPC): add ENR to waku info (#502) Adding 35/WAKU2-NOISE to menu (#500) add RFC33 to index (#499) feat: 32/RLN raw spec New RFC: 35/WAKU2-NOISE (#496) Update on the rln registration figure to match the current spec (#497) 33/WAKU-DISCV5: Add first raw version (#487) Add pubsubTopic field to index (#492) Fix markdown links (#493) Categorize 22 & 31 (#490) Changed PB Timestamp index to 10 (#491) 13/14/16/21: Change in timestamp format (#483) add: RFC31 copyright statement (#489) 17/WAKU-RLN-RELAY: Revise spec for its draft version (#484)
Adds
pubsubTopic
field toIndex
types.This is necessary as a single
store
could serve multiplepubsubTopic
s. A cursor/index should therefore differentiate between messages that are identical across all fields, but were published on differentpubsubTopic
s.nim-waku
changes corresponding to this RFC change in waku-org/nwaku#864Is this backwards compatible?
Since adding a field with a new tag value to a protobuf maintains backwards compatibility, there is no need to bump the store
protocol id
. However,HistoryResponses
will now return thepubsubTopic
as part of thecursor
inPagingInfo
. The fullPagingInfo
, includingpubsubTopic
, must be provided in subsequent queries to the store node. A future improvement here would be to hash the cursor into a binary blob, so that clients can remain agnostic as to its contents.