Open AskAlexSharov opened 2 months ago
need get rid of inMemExec := txc.Doms != nil
inMemExec := txc.Doms != nil
Let's turn inMemExec and isMining into enum with 3 options: Mining/ForkValidation/ApplyBlocks (feel free to propose better naming)
inMemExec
isMining
Mining/ForkValidation/ApplyBlocks
InMem - it's ForkValidation
InMem
ForkValidation
Value let's store inside type Sync struct (we have 3 sync instances) and set to StageState.CurrentSyncCycle.Mode
type Sync struct
StageState.CurrentSyncCycle.Mode
I think we should rename Mining to BlockProduction
oke BlocksProduction ForkValidation ApplyBlocks (or Sync or ?)
BlocksProduction
ApplyBlocks
Sync
?
need get rid of
inMemExec := txc.Doms != nil
Let's turn
inMemExec
andisMining
into enum with 3 options:Mining/ForkValidation/ApplyBlocks
(feel free to propose better naming)InMem
- it'sForkValidation
Value let's store inside
type Sync struct
(we have 3 sync instances) and set toStageState.CurrentSyncCycle.Mode