Skip to content

Commit b9e361c

Browse files
committed
things working now
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent 28865fe commit b9e361c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/blockchain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
322322
// for it to be able to recover if interrupted during the transition
323323
// but that's left out to a later PR since there's not really a need
324324
// right now.
325-
bc.stateCache.InitTransitionStatus(true, true)
326-
bc.stateCache.EndVerkleTransition()
325+
bc.stateCache.InitTransitionStatus(false, false)
326+
// bc.stateCache.EndVerkleTransition()
327327
}
328328

329329
if !bc.HasState(head.Root) {

core/state_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func InsertBlockHashHistoryAtEip2935Fork(statedb *state.StateDB, prevNumber uint
185185
statedb.Witness().TouchFullAccount(params.HistoryStorageAddress[:], true)
186186

187187
ancestor := chain.GetHeader(prevHash, prevNumber)
188-
for i := prevNumber; i > 0 && i >= prevNumber-params.Eip2935BlockHashHistorySize; i-- {
188+
for i := prevNumber; i > 0 && i > prevNumber-params.Eip2935BlockHashHistorySize; i-- {
189189
ProcessParentBlockHash(statedb, i, ancestor.Hash())
190190
ancestor = chain.GetHeader(ancestor.ParentHash, ancestor.Number.Uint64()-1)
191191
}

0 commit comments

Comments
 (0)