From 7d9ebd2592d815b8b90376bf58bb50b6dd532abe Mon Sep 17 00:00:00 2001 From: 0xKitsune <0xKitsune@protonmail.com> Date: Wed, 13 Dec 2023 18:44:35 -0500 Subject: [PATCH] updated insert_into_tx_hashes to do nothing on conflict --- src/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.rs b/src/db.rs index 269e9b6..fe96728 100644 --- a/src/db.rs +++ b/src/db.rs @@ -250,6 +250,7 @@ impl Database { r#" INSERT INTO tx_hashes (tx_id, tx_hash, max_fee_per_gas, max_priority_fee_per_gas) VALUES ($1, $2, $3, $4) + ON CONFLICT (tx_hash) DO NOTHING "#, ) .bind(tx_id)