-
Notifications
You must be signed in to change notification settings - Fork 9
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
Extend API for multismesher node #302
Conversation
4d6f33c
to
bf720ce
Compare
bf720ce
to
2d68224
Compare
"Multi-smeshing" is the same as running a node with multiple post services? As for Node events, it is clear that I can just display a smesher id. But I'm not sure should Smapp display more than one smesher id on the smesher screen 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Yes
The deprecated API will always return 00..00 as smesher ID. In the case where the node runs in supervised mode (what we are currently doing) the new API will return an array with only one SmesherID, but as soon as multiple post services are connected to the node it will return an array with all those IDs. That's why I deprecated the old call, it doesn't make sense in this case to just return one - which one? |
Okay, that makes sense. I just thought that Smapp also displays some other stuff (for example a size of PoST, location, etc) and when we have a list of Smesher IDs it will be not clear which one corresponds to this data...
But anyway, as for now — I will just display a list of Smesher IDs ;) |
Right now the data you are referring to is provided via the In a multi-smeshing setup that endpoint won't return anything as the node does not have this information. Instead the post services could be queried for that info. cc @poszu |
Okay, got it |
I think it would be better to return an "Unimplemented" status (perhaps with a message informing to switch to the new API) instead. It would become obvious that this API is no longer available and the user should switch to the new one. Otherwise, it might get overlooked and various tools will show |
@poszu I changed the handler to return |
For multi-smeshing support the API has to be updated such that the node can report events correctly to clients about which Identity started / finished post and which Identities are managed by the node.
I updated all types and endpoints in a backwards compatible way and marked outdated APIs as depreciated.
cc @brusherru