gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
844 stars 344 forks source link

[META] [Genesis] `genesis validator` #1228

Closed zivkovicmilos closed 8 months ago

zivkovicmilos commented 8 months ago

Description

Task copied from the master issue: https://github.com/gnolang/gno/issues/1203

validator

The validator subcommand should manage validators in the genesis.json.

Flags

  • --genesis-path - the path to the genesis.json

validator add

The validator add subcommand should add a new validator to the genesis.json. The command should fail if the validator already exists in the genesis.json.

Flags

  • --address - the string address of the validator
  • --pub-key - the hex representation of the validator's public key
  • --name - the name of the validator (must be unique)
  • --power - the voting power of the validator

validator remove

The validator remove subcommand should remove a validator from the genesis.json. The command should fail if the validator does not exist in the genesis.json.

Flags

  • --address - the string address of the validator

PR against branch: feat/genesis

zivkovicmilos commented 8 months ago

Closed by #1259