many renames / golint compliance
This commit is contained in:
+2
-2
@@ -76,10 +76,10 @@ func (c initCmd) run(cmd *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
var DEFAULT_DENOM = "mycoin"
|
||||
var defaultDenom = "mycoin"
|
||||
|
||||
// Now, we want to add the custom app_state
|
||||
appState, err := c.genAppState(args, addr, DEFAULT_DENOM)
|
||||
appState, err := c.genAppState(args, addr, defaultDenom)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
+3
-3
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout
|
||||
func ShowNodeIDCmd(ctx *Context) *cobra.Command {
|
||||
cmd := showNodeId{ctx}
|
||||
cmd := showNodeID{ctx}
|
||||
return &cobra.Command{
|
||||
Use: "show_node_id",
|
||||
Short: "Show this node's ID",
|
||||
@@ -20,11 +20,11 @@ func ShowNodeIDCmd(ctx *Context) *cobra.Command {
|
||||
}
|
||||
}
|
||||
|
||||
type showNodeId struct {
|
||||
type showNodeID struct {
|
||||
context *Context
|
||||
}
|
||||
|
||||
func (s showNodeId) run(cmd *cobra.Command, args []string) error {
|
||||
func (s showNodeID) run(cmd *cobra.Command, args []string) error {
|
||||
cfg := s.context.Config
|
||||
nodeKey, err := p2p.LoadOrGenNodeKey(cfg.NodeKeyFile())
|
||||
if err != nil {
|
||||
|
||||
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/tendermint/tmlibs/log"
|
||||
)
|
||||
|
||||
// server context
|
||||
type Context struct {
|
||||
Config *cfg.Config
|
||||
Logger log.Logger
|
||||
@@ -59,6 +60,7 @@ func PersistentPreRunEFn(context *Context) func(*cobra.Command, []string) error
|
||||
}
|
||||
}
|
||||
|
||||
// add server commands
|
||||
func AddCommands(
|
||||
rootCmd *cobra.Command,
|
||||
appState GenAppState, appCreator AppCreator,
|
||||
|
||||
Reference in New Issue
Block a user