Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions coprocessor/fhevm-engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Track when entries are created for fair queuing of unsent transactions.
ALTER TABLE ciphertext_digest
ADD COLUMN IF NOT EXISTS created_at TIMESTAMP NOT NULL DEFAULT NOW();

-- Handle SELECTs on handle only by the txn-sender.
CREATE INDEX IF NOT EXISTS idx_ciphertext_digest_handle
ON ciphertext_digest (handle);

-- Handle SELECTs on unsent txns with limited retries by the txn-sender.
CREATE INDEX IF NOT EXISTS idx_ciphertext_digest_unsent
ON ciphertext_digest (txn_is_sent, created_at);
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ where
AND ciphertext IS NOT NULL
AND ciphertext128 IS NOT NULL
AND txn_limited_retries_count < $1
ORDER BY created_at ASC
LIMIT $2",
self.conf.add_ciphertexts_max_retries,
self.conf.add_ciphertexts_batch_limit as i64,
Expand Down
Loading