Skip to content

Commit

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

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

Expand Down

0 comments on commit 11fec48

Please sign in to comment.