From 60b5c4143205586278f0047fe1d4784d56254a6b Mon Sep 17 00:00:00 2001 From: Pratik Patil Date: Mon, 22 Jan 2024 21:34:55 +0530 Subject: [PATCH] addressed comment --- core/parallel_state_processor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/parallel_state_processor.go b/core/parallel_state_processor.go index 4f1aedc357..2074c9727b 100644 --- a/core/parallel_state_processor.go +++ b/core/parallel_state_processor.go @@ -288,8 +288,9 @@ func (p *ParallelStateProcessor) Process(block *types.Block, statedb *state.Stat deps := GetDeps(blockTxDependency) - if !VerifyDeps(deps) { + if !VerifyDeps(deps) || len(blockTxDependency) != len(block.Transactions()) { blockTxDependency = nil + deps = make(map[int][]int) } if blockTxDependency != nil {