Skip to content

Commit

Permalink
correct chain, header params
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtuna committed May 15, 2018
1 parent 304f116 commit f1cf546
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tomo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
if ok, err := ethereum.ValidateMiner(); err != nil {
utils.Fatalf("Can't verify validator permission: %v", err)
} else if !ok {
utils.Fatalf("Only validators can mine blocks")
utils.Fatalf("Only validator can mine blocks")
}

// Use a reduced number of threads if requested
Expand Down
1 change: 0 additions & 1 deletion consensus/clique/clique.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/crypto/sha3"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (s *Ethereum) ValidateMiner() (bool, error) {
return false, fmt.Errorf("Only verify miners in Clique protocol")
} else {
//check if miner's wallet is in set of validators
snap, err := c.GetSnapshot(chain, header)
snap, err := c.GetSnapshot(s.blockchain, s.blockchain.CurrentHeader())
if err != nil {
return false, fmt.Errorf("Can't verify miner: %v", err)
}
Expand Down

0 comments on commit f1cf546

Please sign in to comment.