Skip to content

Commit

Permalink
bugfix: fix the etx bug from the etx cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Aug 30, 2023
1 parent 9f2e879 commit 4dd103b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 4dd103b

Please sign in to comment.