erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.13k stars 1.11k forks source link

Turn `inMem` heuristic to bool cfg #11774

Open AskAlexSharov opened 2 months ago

AskAlexSharov commented 2 months ago

need get rid of inMemExec := txc.Doms != nil

Let's turn inMemExec and isMining into enum with 3 options: Mining/ForkValidation/ApplyBlocks (feel free to propose better naming)

InMem - it's ForkValidation

Value let's store inside type Sync struct (we have 3 sync instances) and set to StageState.CurrentSyncCycle.Mode

mh0lt commented 2 months ago

I think we should rename Mining to BlockProduction

AskAlexSharov commented 2 months ago

oke BlocksProduction ForkValidation ApplyBlocks (or Sync or ?)