Skip to content

Commit

Permalink
fix: wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 12, 2024
1 parent 1065a66 commit b42b653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func (txmp *TxMempool) addNewTransaction(wtx *WrappedTx, checkTxRes *abci.Respon

haveSpace := len(victims) != 0 && victimBytes <= wtx.Size()
txmp.logger.Debug("addNewTransaction haveSpace", "have_space", haveSpace, "victims", victims)
if haveSpace {
if !haveSpace {
// Sort lowest priority items first so they will be evicted first. Break
// ties in favor of newer items (to maintain FIFO semantics in a group).
sort.Slice(victims, func(i, j int) bool {
Expand Down

0 comments on commit b42b653

Please sign in to comment.