Skip to content

Commit

Permalink
chore: filter repeated transactions by minedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Feb 16, 2024
1 parent df8d066 commit a1af81a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/core/src/controllers/TransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ export const TransactionsController = {
const yearTransactions = grouped[year] ?? {}
const monthTransactions = yearTransactions[month] ?? []

if (
monthTransactions.find(
t =>
t.metadata.hash === transaction.metadata.hash &&
t.metadata.status === transaction.metadata.status
)
) {
if (monthTransactions.find(t => t.metadata.minedAt === transaction.metadata.minedAt)) {
return
}

Expand Down

0 comments on commit a1af81a

Please sign in to comment.