Skip to content

Commit f548dc3

Browse files
committed
Don't err on duplicate slot decryption signatures
We might receive duplicate slot decryption signatures (e.g. if a key shares message is delivered multiple times, or if we receive a keys message if we've already seen a few of the corresponding shares messages). Don't log and error if we try to insert these signatures into the database.
1 parent e964794 commit f548dc3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rolling-shutter/keyperimpl/gnosis/database/gnosiskeyper.sqlc.gen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rolling-shutter/keyperimpl/gnosis/database/sql/queries/gnosiskeyper.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ WHERE eon = $1;
7575

7676
-- name: InsertSlotDecryptionSignature :exec
7777
INSERT INTO slot_decryption_signatures (eon, slot, keyper_index, tx_pointer, identities_hash, signature)
78-
VALUES ($1, $2, $3, $4, $5, $6);
78+
VALUES ($1, $2, $3, $4, $5, $6)
79+
ON CONFLICT DO NOTHING;
7980

8081
-- name: GetSlotDecryptionSignatures :many
8182
SELECT * FROM slot_decryption_signatures

0 commit comments

Comments
 (0)