You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder whether we could add back a validator: bool entry in Substrate to this ConnectionMessage (no more address would be shown from this though, just a "yes/no" field). I also wonder whether any other message contains information we could use to extrapolate whether a node is a validator. I think an account address is associated with the node after startup, so perhaps it is sent along in another telemetry message?
Alternately, if that fails, we could just remove the validator column since it is no longer helpful.
Appendix
In telemetry_shard/src/main.rs's handle_message_from_node function we can add something like:
let all_msg: serde_json::Value = serde_json::from_slice(&bytes).unwrap();println!("{all_msg:#?}");
to log all messages sent to the node. We don't need to start a telemetry_core up to do this so it's fairly easy to see what a node spits out and test that we are getting what we want from a local node.
The text was updated successfully, but these errors were encountered:
Substrate no longer sends the "validator" entry in the node details that we use to populate this column on startup. The node sends:
This comes from the
ConnectionMessage
in substrate which looks like:But we expect a payload like:
And the
validator
address, if present, populates the validator column.We can see that it's almost always empty now, or it has a naff address.
Substrate nodes are started with a
--validator
flag (this guide runs through setting up a validator https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#thousand-validators-programme).I wonder whether we could add back a
validator: bool
entry in Substrate to thisConnectionMessage
(no more address would be shown from this though, just a "yes/no" field). I also wonder whether any other message contains information we could use to extrapolate whether a node is a validator. I think an account address is associated with the node after startup, so perhaps it is sent along in another telemetry message?Alternately, if that fails, we could just remove the
validator
column since it is no longer helpful.Appendix
In
telemetry_shard/src/main.rs
'shandle_message_from_node
function we can add something like:to log all messages sent to the node. We don't need to start a
telemetry_core
up to do this so it's fairly easy to see what a node spits out and test that we are getting what we want from a local node.The text was updated successfully, but these errors were encountered: