mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
[Bug fix] Fix tx dependency
This commit is contained in:
parent
480ccf2aa8
commit
463bea0ce2
1 changed files with 2 additions and 2 deletions
|
|
@ -290,6 +290,8 @@ func NewParallelExecutor(tasks []ExecTask, profile bool, metadata bool) *Paralle
|
|||
|
||||
// nolint: gocognit
|
||||
func (pe *ParallelExecutor) Prepare() {
|
||||
prevSenderTx := make(map[common.Address]int)
|
||||
|
||||
for i, t := range pe.tasks {
|
||||
clearPendingFlag := false
|
||||
|
||||
|
|
@ -309,8 +311,6 @@ func (pe *ParallelExecutor) Prepare() {
|
|||
clearPendingFlag = false
|
||||
}
|
||||
} else {
|
||||
prevSenderTx := make(map[common.Address]int)
|
||||
|
||||
if tx, ok := prevSenderTx[t.Sender()]; ok {
|
||||
pe.execTasks.addDependencies(tx, i)
|
||||
pe.execTasks.clearPending(i)
|
||||
|
|
|
|||
Loading…
Reference in a new issue