paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

Expose node-specific config/options via RPC #4965

Open jacogr opened 4 years ago

jacogr commented 4 years ago

Some of the information that would make sense -

We could turn this into a hold-all and add elsewhere duplicated info such as system_name and system_version as well.

tomaka commented 4 years ago

the node type (validator, light client, etc.)

This one already exists: https://github.com/paritytech/substrate/blob/0227ff513a045305efee0d8c2cb6025bcefb69ff/client/rpc-api/src/system/mod.rs#L103-L105

jacogr commented 4 years ago

Agreed, that one does exist - the one above assumes we can combine all that info, so instead of making multiple calls, there is one single RPC that just gives you all at once. (Hence also mentioning name/version above, this is also elsewhere)