-
Notifications
You must be signed in to change notification settings - Fork 1k
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 VersionPayload with service information #548
Comments
The |
That's what I expected, but we miss the port information elsewhere |
Once we add the |
is this planned for 3.0 or perhaps sooner? |
Example: void ISerializable.Deserialize(BinaryReader reader)
{
Version = reader.ReadUInt32();
Services = (ServicesFlags)reader.ReadUInt64();
Timestamp = reader.ReadUInt32();
Port = reader.ReadUInt16();
Nonce = reader.ReadUInt32();
UserAgent = reader.ReadVarString(1024);
StartHeight = reader.ReadUInt32();
Relay = reader.ReadBoolean();
if (Services.HasFlag(ServicesFlags.Websocket))
{
WebsocketPort = reader.ReadUInt16();
}
...
} |
Looks good |
We should add protocol version, and the possibility to negotiate other protocols, in the future we should consider to use UDP for receive messages. |
Done with the Capabilities |
@shargon @lock9 please reopen as capabilities do not seem to be intended for the purpose of sharing RPC or REST services according to #1342 (comment) |
* Create 2.7.6 branch for CLI API * Update cli.md (neo-project#548) * Update cli.md Revise for the new version's features. * Update cli.md Reviese for the example of request. * Update cli.md Add blank for values * Update cli.md Add blank. * Update api.md (neo-project#551) Add getvalidators API * Create getvalidators.md (neo-project#553) Add getvalidators.md * release 2.7.6
Currently if one wants to discover available network services like RPC or REST you need to know about http://monitor.cityofzion.io/, https://happynodes.f27.ventures/ or something alike.
A solution to discover such services via the network would be to extend the
VersionPayload
withRPCPort
,RESTPort
andWebsocket
port (the most common ones currently missing). Then turn theServices
into a flag that indicates which services are enabled.neo/neo/Network/P2P/Payloads/VersionPayload.cs
Line 10 in 5222283
This allows one to connect to the network and discover available services via the nodes (through a combination of
PeerInfo
requests andVersionPayload
's). The aforementioned websites could also discover more available services improving the overall user experience.The text was updated successfully, but these errors were encountered: