You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
399 B

package main
import (
"fmt"
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/state"
)
func gen_validator() {
privValidator := state.GenPrivValidator()
privValidatorJSONBytes := privValidator.JSONBytes()
fmt.Printf(`Generated a new validator!
Paste the following JSON into your %v file
%v
`,
config.PrivValidatorFile(),
string(privValidatorJSONBytes),
)
}