erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Turn `inMem` heuristic to bool cfg

Open AskAlexSharov opened this issue 1 year ago • 2 comments

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

AskAlexSharov avatar Aug 28 '24 09:08 AskAlexSharov

I think we should rename Mining to BlockProduction

mh0lt avatar Aug 28 '24 13:08 mh0lt

oke BlocksProduction ForkValidation ApplyBlocks (or Sync or ?)

AskAlexSharov avatar Aug 28 '24 13:08 AskAlexSharov