-
Notifications
You must be signed in to change notification settings - Fork 80
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
Use local machine to join as validator on any L1 #2548
Conversation
Can you elaborate in the PR description how a user would accomplish this with the CLI? Is there a new command to import a new L1 configuration or add an active RPC endpoint as a known L1 network? How does this work exactly |
ec0a639
to
830b1d2
Compare
@@ -1563,60 +1519,6 @@ func ConvertURIToPeers(uris []string) ([]info.Peer, error) { | |||
return aggregatorPeers, nil | |||
} | |||
|
|||
func GetAggregatorExtraPeers( |
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.
Moving these functions to blockchain pkg so that it can be re used across cmds
@@ -289,46 +289,3 @@ func getThreshold(maxLen int) (uint32, error) { | |||
} | |||
return uint32(intTh), err | |||
} | |||
|
|||
func getKeyForChangeOwner(network models.Network) (string, error) { |
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.
Moving these functions to blockchain pkg so that it can be re used across cmds
Signed-off-by: sukantoraymond <rsukanto@umich.edu>
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.
LGTM
* use local machine to join as validator * fix lint * update validate function * local machine validate l1 * update command description * lint * lint * address comments * fix merge * address comments * enable more than 1 node in a cluster to validate * address comments * fix lint * fix lint --------- Signed-off-by: sukantoraymond <rsukanto@umich.edu>
This PR enables using local machine to join any L1 (Proof of Stake) as a validator.
To join an L1 as validator, call
avalanche node local start <clusterName>
followed byavalanche node local validate <clusterName>
. User will be prompted for RPC URL.If has more than 1 node in it, all nodes will be added as validators of the specified L1
E2E test will be implemented once #2528 is resolved
Sample output