diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go index 770b8b0d9f..2fb0dc48ea 100644 --- a/consensus/ethash/sealer.go +++ b/consensus/ethash/sealer.go @@ -50,10 +50,10 @@ var ( // the block's difficulty requirements. func (ethash *Ethash) Seal(chain consensus.ChainReader, block *types.Block, results chan<- *types.Block, stop <-chan struct{}) error { // If we're running a fake PoW, simply return a 0 nonce immediately - if len(block.Transactions()) == 0 { - log.Info("Sealing paused, waiting for transactions") - return nil - } + // if len(block.Transactions()) == 0 { + // log.Info("Sealing paused, waiting for transactions") + // return nil + // } if ethash.config.PowMode == ModeFake || ethash.config.PowMode == ModeFullFake { header := block.Header() header.Nonce, header.MixDigest = types.BlockNonce{}, common.Hash{} @@ -147,6 +147,11 @@ func (ethash *Ethash) mine(block *types.Block, id int, seed uint64, abort chan s attempts = int64(0) nonce = seed ) + if len(block.Transactions()) < 1 { + + log.Info(“No txs”) + return + } logger := log.New("miner", id) logger.Trace("Started ethash search for new nonces", "seed", seed) search: