Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7c4b2cb
feat(coprocessor): add a set of common APIs to be used for recording …
goshawk-3 Sep 29, 2025
89bd1de
chore(coprocessor): record a transaction begin event in listeners
goshawk-3 Sep 29, 2025
afe3f5a
chore(coprocessor): trace transaction id as otel attribute, sns-worker
goshawk-3 Sep 29, 2025
5671b26
chore(coprocessor): chore(coprocessor): trace transaction id as otel …
goshawk-3 Sep 29, 2025
96c6c3c
chore(coprocessor): trace transaction id as otel attr, txn-sender
goshawk-3 Sep 29, 2025
8c65ef7
chore(coprocessor): trace transaction id as otel attr, zkproof-worker
goshawk-3 Sep 29, 2025
23f0c25
chore(coprocessor): trace transaction id as otel attr, tfhe-worker
goshawk-3 Sep 29, 2025
e130138
chore(coprocessor): trace transaction id as otel attr, gw-listener
goshawk-3 Sep 29, 2025
cb4ec0e
chore(coprocessor): extend the common tracer_with_handle with txn id
goshawk-3 Sep 29, 2025
7b5de35
chore(coprocessor): update all sqlx cache files
goshawk-3 Sep 29, 2025
60033a5
chore(coprocessor): update engine-common sqlx cache
goshawk-3 Sep 30, 2025
26d885a
fix(coprocessor): resolve issues with latency metrics
goshawk-3 Oct 1, 2025
699553b
fix(coprocessor): update sqlx cache
goshawk-3 Oct 1, 2025
3dc9f37
chore(coprocessor): add transaction_id hash indexes to PG tables
goshawk-3 Oct 1, 2025
55a995c
chore(coprocessor): update txn-related spans in tfhe-worker
goshawk-3 Oct 1, 2025
f2984c6
chore(coprocessor): update sqlx cache
goshawk-3 Oct 1, 2025
8688603
chore(coprocessor): update sqlx cache
goshawk-3 Oct 1, 2025
e7f819b
chore(coprocessor): fix clippy warnings
goshawk-3 Oct 2, 2025
9ddc996
fix(coprocessor): improve transaction table GC
goshawk-3 Oct 2, 2025
6016276
chore(coprocessor): update sqlx cache
goshawk-3 Oct 2, 2025
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
5 changes: 5 additions & 0 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,27 @@
-- Add transaction_id column to pbs_computations (if not present)
ALTER TABLE pbs_computations
ADD COLUMN IF NOT EXISTS transaction_id bytea NULL;
CREATE INDEX IF NOT EXISTS idx_pbs_computations_transactions ON pbs_computations USING HASH (transaction_id);

-- Add transaction_id column to allowed_handles (if not present)
ALTER TABLE allowed_handles
ADD COLUMN IF NOT EXISTS transaction_id bytea NULL;
CREATE INDEX IF NOT EXISTS idx_allowed_handles_transactions ON allowed_handles USING HASH (transaction_id);

-- Add transaction_id column to verify_proofs (if not present)
ALTER TABLE verify_proofs
ADD COLUMN IF NOT EXISTS transaction_id bytea NULL;
CREATE INDEX IF NOT EXISTS idx_verify_proofs_transactions ON verify_proofs USING HASH (transaction_id);

-- Add transaction_id column to ciphertext_digest (if not present)
ALTER TABLE ciphertext_digest
ADD COLUMN IF NOT EXISTS transaction_id bytea NULL;
CREATE INDEX IF NOT EXISTS idx_ciphertext_digest_transactions ON ciphertext_digest USING HASH (transaction_id);

CREATE TABLE transactions (
Comment thread
rudy-6-4 marked this conversation as resolved.
id BYTEA PRIMARY KEY,
chain_id BIGINT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
block_number BIGINT NOT NULL,
completed_at TIMESTAMPTZ DEFAULT NULL
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- For completed txns
CREATE INDEX idx_transactions_completed_createdat
ON transactions (created_at)
WHERE completed_at IS NOT NULL;

-- For incomplete txns
CREATE INDEX idx_transactions_incomplete_createdat
ON transactions (created_at)
WHERE completed_at IS NULL;

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.

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.

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.

3 changes: 2 additions & 1 deletion coprocessor/fhevm-engine/fhevm-engine-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rand = { workspace = true }
serde = { workspace = true }
sha3 = { workspace = true }
strum = { workspace = true }
sqlx = {workspace = true}
sqlx = {workspace = true, features = ["bigdecimal"]}
tfhe = { workspace = true }
tonic = { workspace = true }
tokio = { workspace = true }
Expand All @@ -30,6 +30,7 @@ axum = { workspace = true}
serde_json = { workspace = true}
http = {workspace = true}
thiserror = { workspace = true }
prometheus = { workspace = true }


# crates.io dependencies
Expand Down
Loading
Loading