Fix State Root Verification in Sync (#3085)

* remove caches

* use already imported block package
This commit is contained in:
Nishant Das 2019-07-28 02:32:13 +05:30 committed by GitHub
parent 96c32c3865
commit fc907261e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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