Open shortthefomo opened 11 months ago
Additionally/ideally, there would be no crosstalk between networks. Nodes should not connect to, nor gossip messages from, nodes on other networks.
+1 from my side. Adding NetworkID to the validation stream would clean up a lot of code that consumes validations.
It would also be nice if this could be added to the ledger
stream, if you're listening to multiple networks.
Summary
Network id is impossible to establish from the validation stream, the stream contains validators of all networks.
Motivation
Explorers, hosting tools, etc. Or anything try to validate data out of this stream will need to figure out which network the node is on.
Solution
Add a network_id field to the validation data returned in the stream of data https://xrpl.org/subscribe.html#validations-stream
Paths Not Taken
Unable to 100% say if the id is present in another hash or it could possibly be derived from something already present.