mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
Fix State Root Verification in Sync (#3085)
* remove caches * use already imported block package
This commit is contained in:
parent
96c32c3865
commit
fc907261e9
@ -42,7 +42,8 @@ func ExecuteStateTransition(
|
||||
if ctx.Err() != nil {
|
||||
return nil, ctx.Err()
|
||||
}
|
||||
|
||||
helpers.ClearStartShardCache()
|
||||
b.ClearEth1DataVoteCache()
|
||||
ctx, span := trace.StartSpan(ctx, "beacon-chain.ChainService.ExecuteStateTransition")
|
||||
defer span.End()
|
||||
var err error
|
||||
@ -98,7 +99,8 @@ func ExecuteStateTransitionNoVerify(
|
||||
}
|
||||
|
||||
stateCopy := proto.Clone(state).(*pb.BeaconState)
|
||||
|
||||
helpers.ClearStartShardCache()
|
||||
b.ClearEth1DataVoteCache()
|
||||
ctx, span := trace.StartSpan(ctx, "beacon-chain.ChainService.ExecuteStateTransition")
|
||||
defer span.End()
|
||||
var err error
|
||||
|
Loading…
Reference in New Issue
Block a user