chain-registry icon indicating copy to clipboard operation
chain-registry copied to clipboard

Have a csv for peernodes

Open okwme opened this issue 4 years ago • 3 comments

Previously here: https://github.com/cosmos/registry/issues/7

This would be to take the contents of the peernodes section of the JSON and put it into a place that is easy to copy and paste into a config file for node operators.

Alternatively (or in addition) this could be a github action that generated a markdown file like this: https://github.com/osmosis-labs/networks/blob/main/peers.md or https://hackmd.io/@KFEZk8oMTz6vBlwADz0M4A/BkKEUOsZu#

okwme avatar Oct 13 '21 14:10 okwme

Here's the jq command to get the seeds from the json in a single string

cat {chain.json} | jq -r '.peers.seeds | map(.id + "@" + .address) | join(",")'

sunnya97 avatar Oct 14 '21 10:10 sunnya97

I think the markdown as an intermediate step should be eliminated (its need feels removed by this), up to access control issues.

Fully agreed we should make an easy way for these peers to be easy to get copy/pasted for node operators. Maybe we make an auto-generated addrbook file, or one-line copy pastable string in the repo?

Ideally we can also have repos have a copy of their own chain.json kept somehow in sync with the one here, and ship with the same default seeds.

ValarDragon avatar Oct 14 '21 23:10 ValarDragon

jq is good, and we can also have a github.io (github pages) html page with some JavaScript to dynamycally format seeds from chain.json to whatever format

vlamitin avatar Oct 20 '21 07:10 vlamitin