Skip to content

feat(aggregation-mode): support multiple dbs#2214

Merged
JuArce merged 23 commits intostagingfrom
feat/support-multiple-dbs
Jan 6, 2026
Merged

feat(aggregation-mode): support multiple dbs#2214
JuArce merged 23 commits intostagingfrom
feat/support-multiple-dbs

Conversation

@MarcosNicolau
Copy link
Copy Markdown
Member

@MarcosNicolau MarcosNicolau commented Dec 18, 2025

Description

Adds support for multiple databases and retry logic to the following components:

  • PaymentsPoller

  • Gateway

  • ProofAggregator

    To enable this, a new module/struct called DbOrchestrator was introduced. It is responsible for handling retry logic and selecting the appropriate database.

How to test

  1. Start ethereum package:
make ethereum_package_start
  1. Start gateway
make agg_mode_gateway_start_ethereum_package
  1. Start poller:
make agg_mode_payments_poller_start_ethereum_package
  1. Send proofs:
make agg_mode_gateway_send_payment
make agg_mode_gateway_send_sp1_proof
  1. Start proof aggregator:
make proof_aggregator_start_ethereum_package

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change crates/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@MarcosNicolau MarcosNicolau self-assigned this Dec 18, 2025
@MarcosNicolau MarcosNicolau force-pushed the feat/support-multiple-dbs branch from 430d4db to 5340365 Compare December 18, 2025 19:02
@MarcosNicolau MarcosNicolau marked this pull request as ready for review December 19, 2025 20:50
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/retry.rs
Comment thread aggregation_mode/payments_poller/src/db.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/orchestrator.rs Outdated
Comment thread aggregation_mode/db/src/retry.rs Outdated
@JuArce JuArce added this pull request to the merge queue Jan 6, 2026
Merged via the queue into staging with commit 218c172 Jan 6, 2026
3 checks passed
@JuArce JuArce deleted the feat/support-multiple-dbs branch January 6, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants