Skip to content

Commit

Permalink
Add do nothing if tx_id exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven committed Feb 20, 2025
1 parent dd0cb8a commit 39173c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bin/pindexer/src/dex_ex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,8 @@ impl Component {
transaction,
height,
time
) VALUES ($1, $2, $3, $4)",
) VALUES ($1, $2, $3, $4)
ON CONFLICT (transaction_id) DO NOTHING",
)
.bind(transaction_id)
.bind(transaction.encode_to_vec())
Expand Down

0 comments on commit 39173c4

Please sign in to comment.