Merge branch 'dev/etan/vd-incprop' into feat/splitview
This commit is contained in:
commit
1744d68af8
|
@ -2657,9 +2657,12 @@ proc getProposalState*(
|
||||||
# and thus has a hot hash tree cache
|
# and thus has a hot hash tree cache
|
||||||
let state =
|
let state =
|
||||||
if dag.incrementalState != nil:
|
if dag.incrementalState != nil:
|
||||||
|
# The block's pre-state will be needed soon to validate our own block
|
||||||
|
dag.clearanceState.assign(dag.incrementalState[])
|
||||||
dag.incrementalState
|
dag.incrementalState
|
||||||
else:
|
else:
|
||||||
assignClone(dag.clearanceState)
|
assignClone(dag.clearanceState)
|
||||||
|
dag.resetChainProgressWatchdog()
|
||||||
|
|
||||||
var
|
var
|
||||||
info = ForkedEpochInfo()
|
info = ForkedEpochInfo()
|
||||||
|
@ -2681,8 +2684,6 @@ proc getProposalState*(
|
||||||
dag.cfg, state[], slot, cache, info,
|
dag.cfg, state[], slot, cache, info,
|
||||||
{skipLastStateRootCalculation}).expect("advancing 1 slot should not fail")
|
{skipLastStateRootCalculation}).expect("advancing 1 slot should not fail")
|
||||||
|
|
||||||
# Ensure async operations don't interfere with `incrementalState`
|
|
||||||
dag.resetChainProgressWatchdog()
|
|
||||||
ok state
|
ok state
|
||||||
|
|
||||||
func aggregateAll*(
|
func aggregateAll*(
|
||||||
|
|
Loading…
Reference in New Issue