Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fix the etx bug from the etx cache #1062

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (w *worker) SortPool(tick *time.Ticker) {
log.Error("Error reading etx set from db")
continue
}
etxSet.Update(types.Transactions{}, currentHead.NumberU64()) // Prune any expired ETXs
etxSet.Update(types.Transactions{}, currentHead.NumberU64()+1) // Prune any expired ETXs
// Get transactions from pool
pending, err := w.txPool.TxPoolPending(true, etxSet)
if err != nil {
Expand Down Expand Up @@ -929,7 +929,7 @@ func (w *worker) fillTransactions(interrupt *int32, env *environment, block *typ
if etxSet == nil {
return
}
etxSet.Update(types.Transactions{}, block.NumberU64()) // Prune any expired ETXs
etxSet.Update(types.Transactions{}, block.NumberU64()+1) // Prune any expired ETXs
pending, err := w.txPool.TxPoolPending(true, etxSet)
if err != nil {
return
Expand Down