Skip to content

Commit

Permalink
BAARC-112: Skip loop if mined or seen slice is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Feb 26, 2024
1 parent 0802762 commit 43e16cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metamorph/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (p *Processor) processExpiredTransactions() {

// Before re-requesting/re-announcing txs check if they had been mined or seen in mempool in the meantime
minedOrSeen, err := p.store.GetMinedOrSeen(context.Background(), hashSlice)
if err == nil {
if err == nil && len(minedOrSeen) > 0 {
// if tx has been mined or seen in the meantime delete both from processor response map and expired transactions
p.logger.Info("found mined or seen txs", slog.Int("number", len(minedOrSeen)))

Expand Down

0 comments on commit 43e16cc

Please sign in to comment.