Skip to content

feat: per-synchronizer validator top-up configuration - #28

Open
salindne wants to merge 4 commits into
mainfrom
feat/per-sync-topup-config
Open

feat: per-synchronizer validator top-up configuration#28
salindne wants to merge 4 commits into
mainfrom
feat/per-sync-topup-config

Conversation

@salindne

@salindne salindne commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Closes ChainSafe/canton-extending-mainnet#110

Summary: domains.extra gains per-synchronizer top-up settings and a derived topupTargets, so the trigger fan-out has an input, and the top-up interval check now runs over every synchronizer instead of reading domains.global alone.

Adds buy-extra-traffic settings to domains.extra entries via a new two-field
ExtraSynchronizerTopupConfig, and a topupTargets accessor returning the
non-zero targets with global first. That accessor is the handoff to the
trigger fan-out.

A narrower type than BuyExtraTrafficConfig, whose grpcDeadline is read once
app-wide and has no per-synchronizer plumbing. Existing {alias, url} entries
are unchanged; targetThroughput defaults to 0.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
The check read domains.global.buy-extra-traffic only, so a per-synchronizer
min-topup-interval set below the polling interval escaped it. It now iterates
topupTargets, which already drops zero-throughput entries, so the global case
stays covered by the general check rather than by a separate one.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne
salindne marked this pull request as ready for review September 3, 2026 18:45
Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne
salindne requested a review from sadiq1971 September 3, 2026 21:12
Say what is surprising about the code rather than why the change is right.
The reasoning is in the commit messages and the PR.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne salindne self-assigned this Sep 4, 2026
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.

[P2-E5.6] Per-synchronizer validator top-up configuration

1 participant