mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix golint
This commit is contained in:
parent
30ae355fd1
commit
205878c40b
2 changed files with 28 additions and 31 deletions
|
|
@ -151,7 +151,7 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, tomoConfig) {
|
||||||
ctx.Set(utils.NATFlag.Name, cfg.NAT)
|
ctx.Set(utils.NATFlag.Name, cfg.NAT)
|
||||||
}
|
}
|
||||||
|
|
||||||
// read passwords from enviroment
|
// read passwords from environment
|
||||||
passwords := []string{}
|
passwords := []string{}
|
||||||
for _, env := range cfg.Account.Passwords {
|
for _, env := range cfg.Account.Passwords {
|
||||||
if trimmed := strings.TrimSpace(env); trimmed != "" {
|
if trimmed := strings.TrimSpace(env); trimmed != "" {
|
||||||
|
|
|
||||||
|
|
@ -321,9 +321,7 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg tomoConfig) {
|
||||||
log.Info("Enabled staking node!!!")
|
log.Info("Enabled staking node!!!")
|
||||||
}
|
}
|
||||||
defer close(core.CheckpointCh)
|
defer close(core.CheckpointCh)
|
||||||
for {
|
for range core.CheckpointCh {
|
||||||
select {
|
|
||||||
case <-core.CheckpointCh:
|
|
||||||
log.Info("Checkpoint!!! It's time to reconcile node's state...")
|
log.Info("Checkpoint!!! It's time to reconcile node's state...")
|
||||||
ok, err := ethereum.ValidateStaker()
|
ok, err := ethereum.ValidateStaker()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -356,7 +354,6 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg tomoConfig) {
|
||||||
log.Info("Enabled staking node!!!")
|
log.Info("Enabled staking node!!!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue