Skip to content

Commit

Permalink
revert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur committed Jan 30, 2025
1 parent e37d7d8 commit ade937f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ const (
txMaxSize = 4 * txSlotSize // 128KB
)

// ErrTxPoolOverflow is returned if the transaction pool is full and can't accept
// another remote transaction.
var ErrTxPoolOverflow = errors.New("txpool is full")
var (
// ErrTxPoolOverflow is returned if the transaction pool is full and can't accept
// another remote transaction.
ErrTxPoolOverflow = errors.New("txpool is full")
)

var (
evictionInterval = time.Minute // Time interval to check for evictable transactions
Expand Down Expand Up @@ -1073,7 +1075,7 @@ func (pool *LegacyPool) Add(txs []*types.Transaction, local, sync bool) []error
newErrs, dirtyAddrs := pool.addTxsLocked(news, local)
pool.mu.Unlock()

nilSlot := 0
var nilSlot = 0
for _, err := range newErrs {
for errs[nilSlot] != nil {
nilSlot++
Expand Down

0 comments on commit ade937f

Please sign in to comment.