miner: remove outdated comment (#30248)

pull/30261/head
Darioush Jalali 3 months ago committed by GitHub
parent de6d597679
commit ff6e43e8c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      miner/worker.go

@ -205,8 +205,7 @@ func (miner *Miner) prepareWork(genParams *generateParams) (*environment, error)
// makeEnv creates a new environment for the sealing block. // makeEnv creates a new environment for the sealing block.
func (miner *Miner) makeEnv(parent *types.Header, header *types.Header, coinbase common.Address) (*environment, error) { func (miner *Miner) makeEnv(parent *types.Header, header *types.Header, coinbase common.Address) (*environment, error) {
// Retrieve the parent state to execute on top and start a prefetcher for // Retrieve the parent state to execute on top.
// the miner to speed block sealing up a bit.
state, err := miner.chain.StateAt(parent.Root) state, err := miner.chain.StateAt(parent.Root)
if err != nil { if err != nil {
return nil, err return nil, err

Loading…
Cancel
Save