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.

42 lines
729 B

  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. "github.com/tendermint/tendermint/config"
  6. )
  7. func main() {
  8. args := os.Args[1:]
  9. if len(args) == 0 {
  10. fmt.Println(`Tendermint
  11. Commands:
  12. daemon Run the tendermint node daemon
  13. gen_account Generate new account keypair
  14. gen_validator Generate new validator keypair
  15. gen_tx Generate new transaction
  16. probe_upnp Test UPnP functionality
  17. `)
  18. return
  19. }
  20. switch args[0] {
  21. case "daemon":
  22. config.ParseFlags(args[1:])
  23. daemon()
  24. case "gen_account":
  25. gen_account()
  26. case "gen_validator":
  27. gen_validator()
  28. case "gen_tx":
  29. config.ParseFlags(args[1:])
  30. gen_tx()
  31. case "probe_upnp":
  32. probe_upnp()
  33. default:
  34. fmt.Printf("Unknown command %v\n", args[0])
  35. }
  36. }