From a546ae74bd3245b11cd7fc41596dac9bfc2d6ffe Mon Sep 17 00:00:00 2001 From: Tuna Date: Fri, 25 May 2018 16:02:11 +0700 Subject: [PATCH] gofmt --- core/blockchain.go | 4 ++-- miner/worker.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 799c22ac42..ba13c23192 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -30,6 +30,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/mclock" "github.com/ethereum/go-ethereum/consensus" + "github.com/ethereum/go-ethereum/consensus/clique" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" @@ -43,7 +44,6 @@ import ( "github.com/ethereum/go-ethereum/trie" "github.com/hashicorp/golang-lru" "gopkg.in/karalabe/cookiejar.v2/collections/prque" - "github.com/ethereum/go-ethereum/consensus/clique" ) var ( @@ -1186,7 +1186,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty stats.processed++ stats.usedGas += usedGas stats.report(chain, i, bc.stateCache.TrieDB().Size()) - if i == len(chain) - 1 { + if i == len(chain)-1 { if (chain[i].NumberU64() % bc.chainConfig.Clique.Epoch) == 0 { clique.Checkpoint <- 1 } diff --git a/miner/worker.go b/miner/worker.go index 742b2398d8..e2ef0f5ad4 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -26,6 +26,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus" + "github.com/ethereum/go-ethereum/consensus/clique" "github.com/ethereum/go-ethereum/consensus/misc" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/state" @@ -36,7 +37,6 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" "gopkg.in/fatih/set.v0" - "github.com/ethereum/go-ethereum/consensus/clique" ) const (