-
Notifications
You must be signed in to change notification settings - Fork 321
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
More complete RPC provider instructions #1665
Open
martinvol
wants to merge
4
commits into
main
Choose a base branch
from
martinvol/run-RPC
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+48
−0
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,38 @@ | ||||||||
# Running community RPC node | ||||||||
|
||||||||
After Celo mainnet transitions to Celo L2, validators that are registered and elected can continue to receive rewards by running PRC nodes. These steps outline how validators can publish the URL of their RPC node in order to be eligible for rewards. To reduce the risk of slashing, these steps should be followed before the L2 upgrade. | ||||||||
|
||||||||
## Registering | ||||||||
|
||||||||
If you're not yet a validator, you must first register. You can follow the instructions to do so [here](/network/mainnet/run-validator#registering-as-a-validator). | ||||||||
|
||||||||
|
||||||||
## Run a node | ||||||||
|
||||||||
If you're not yet running a node, see the [following instructions](/cel2/operators/docker-node). | ||||||||
|
||||||||
## Register as a community RPC provider | ||||||||
|
||||||||
To register as a RPC provider, a public https url needs to be registered on-chain. To do this, we will register the rpc url in a signed metadata file that's used to share additional information about Celo accounts. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
> Make sure to be in CLI in version at least `6.0.0-beta.5` | ||||||||
> | ||||||||
|
||||||||
The `--from` flag in the CLI can either be the validator account itself, or the validator signer. | ||||||||
|
||||||||
1. Create a new metadata file. If, instead, you want to update an existing one, download it instead of creating it. | ||||||||
|
||||||||
`$ celocli account:create-metadata ./metadata.json --from $VALIDATOR_SIGNER` | ||||||||
|
||||||||
2. Register your public RPC url: | ||||||||
|
||||||||
`$ celocli account:claim-rpc-url ./metadata.json --from $VALIDATOR_SIGNER --rpcUrl $RPC_URL` | ||||||||
|
||||||||
3. Upload this metadata file to a publicly available URL with high availability. | ||||||||
4. Now link this URL to the validator Celo account: | ||||||||
|
||||||||
`$ celocli account:register-metadata --url $METADATA_URL --from $ACCOUNT_ADDRESS` | ||||||||
|
||||||||
5. Verify that the metadata registration was successful by retrieving it: | ||||||||
|
||||||||
`$ celocli account:get-metadata $ACCOUNT_ADDRESS` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.