Skip to content

Commit

Permalink
reduce defaultNumOfSlots
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Sep 4, 2024
1 parent 4993ca2 commit 6505d9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/parallel_state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,10 @@ func (p *ParallelStateProcessor) doCleanUp() {
return true
})
}()

p.unconfirmedResults = nil
p.unconfirmedDBs = nil
p.pendingConfirmResults = nil
}

// Process implements BEP-130 Parallel Transaction Execution
Expand Down
2 changes: 1 addition & 1 deletion core/state/parallel_statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
)

const defaultNumOfSlots = 20
const defaultNumOfSlots = 5

var parallelKvOnce sync.Once

Expand Down

0 comments on commit 6505d9a

Please sign in to comment.