Skip to content
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

Update full-consensus-node.mdx #1083

Merged
merged 9 commits into from
Oct 4, 2023
Merged

Update full-consensus-node.mdx #1083

merged 9 commits into from
Oct 4, 2023

Conversation

vvuwei
Copy link
Contributor

@vvuwei vvuwei commented Sep 23, 2023

Fixed command for getting persistent peers.

Overview

Previous version of command for saving persistent peers had bug with removing all new liners from peers list, and as a result node configuration was getting that list in non-readable form:

original list (from here):

[email protected]:26656
43e9da043318a4ea0141259c17fcb06ecff816af@rpc-1.celestia.nodes.guru:43656
f9e950870eccdb40e2386896d7b6a7687a103c99@rpc-2.celestia.nodes.guru:43656
daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656

original command:

PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/mocha-4/peers.txt | tr -d '\n')
echo $PERSISTENT_PEERS

results in:

[email protected]:2665643e9da043318a4ea0141259c17fcb06ecff816af@rpc-1.celestia.nodes.guru:43656f9e950870eccdb40e2386896d7b6a7687a103c99@rpc-2.celestia.nodes.guru:43656daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656

new command:

PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/mocha-4/peers.txt | head -c -1 | tr '\n' ',')

results in:

[email protected]:26656,43e9da043318a4ea0141259c17fcb06ecff816af@rpc-1.celestia.nodes.guru:43656,f9e950870eccdb40e2386896d7b6a7687a103c99@rpc-2.celestia.nodes.guru:43656,daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656

Known issues

Mac users built-in head command does not except negative numbers for -c flag.
Solution is to install coreutils package and use ghead command from it.

brew install coreutils

and optionally set alias from head to ghead in shell config (~/.bashrc, ~/.zshrc etc):

alias head=ghead

Checklist

  • [+] New and updated code has appropriate documentation
  • [+] New and updated code has new and/or updated testing
  • [+] Required CI checks are passing
  • [+] Visual proof for any user facing features like CLI or documentation updates
  • [+] Linked issues closed with keywords

Fixed command for getting persistent peers.
@jcstein
Copy link
Member

jcstein commented Sep 26, 2023

linking this issue, as different formatting in networks repo is causing issues: celestiaorg/networks#350

@jcstein
Copy link
Member

jcstein commented Sep 26, 2023

thanks for the PR @LavyshAlexander - could you please add the instructions for mac users within the page?

Copy link
Member

@jcstein jcstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! left a minor suggestion to add the mac instructions

@vvuwei
Copy link
Contributor Author

vvuwei commented Oct 2, 2023

yeah, of course, @jcstein. Now instruction with note for mac users ;)

@jcstein
Copy link
Member

jcstein commented Oct 2, 2023

thanks @LavyshAlexander! I think that we should add to the arabica instructions as well, as the formatting of that peers file is the same

@vvuwei
Copy link
Contributor Author

vvuwei commented Oct 4, 2023

Updated instruction for arabica and some additional formattings.

@vvuwei vvuwei requested a review from jcstein October 4, 2023 15:35
Copy link
Member

@jcstein jcstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit: thanks again @LavyshAlexander for this PR!

@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 4, 2023

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2023 Celestia Contributor:

GitPOAP: 2023 Celestia Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

jcstein added a commit that referenced this pull request Oct 4, 2023
jcstein added a commit that referenced this pull request Oct 4, 2023
* chore: consolidate consensus nodes into one page

* format with prettier

* add changes from #1083

* format

* match 96a1397

* apply suggestion from #1107 (comment)

* feat: interpolate arabica/mocha chain-id

* fix: the -> a

* Revert "fix: the -> a"

This reverts commit d2cea53.

* Update docs/nodes/consensus-node.mdx

Co-authored-by: Rootul P <[email protected]>

* fix: the -> a

* Update docs/nodes/consensus-node.mdx

Co-authored-by: Rootul P <[email protected]>

---------

Co-authored-by: Rootul P <[email protected]>
@vvuwei vvuwei deleted the patch-1 branch October 5, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants