diff --git a/miner/worker.go b/miner/worker.go index 4570cd6f41..21bf3bdae2 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -585,10 +585,10 @@ func (self *worker) commitNewWork() { } // won't grasp txs at checkpoint var ( - txs *types.TransactionsByPriceAndNonce + txs *types.TransactionsByPriceAndNonce specialTxs types.Transactions ) - if self.config.XDPoS != nil && header.Number.Uint64() % self.config.XDPoS.Epoch != 0 { + if self.config.XDPoS != nil && header.Number.Uint64()%self.config.XDPoS.Epoch != 0 { pending, err := self.eth.TxPool().Pending() if err != nil { log.Error("Failed to fetch pending transactions", "err", err) @@ -598,7 +598,6 @@ func (self *worker) commitNewWork() { } work.commitTransactions(self.mux, txs, specialTxs, self.chain, self.coinbase) - // compute uncles for the new block. var ( uncles []*types.Header