From 11fec480b5da8d856b92e9d064380b3008795a2c Mon Sep 17 00:00:00 2001 From: tomiir Date: Fri, 16 Feb 2024 11:21:05 -0600 Subject: [PATCH] chore: add hash check --- packages/core/src/controllers/TransactionsController.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/core/src/controllers/TransactionsController.ts b/packages/core/src/controllers/TransactionsController.ts index f2d0fed699..b8e011ee41 100644 --- a/packages/core/src/controllers/TransactionsController.ts +++ b/packages/core/src/controllers/TransactionsController.ts @@ -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 }