Skip to content

Commit

Permalink
on conflict, update tx_hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Dec 13, 2023
1 parent 7d9ebd2 commit 8488a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +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
ON CONFLICT (tx_hash) DO UPDATE
"#,
)
.bind(tx_id)
Expand Down

0 comments on commit 8488a9e

Please sign in to comment.