Repository navigation
feat: choose the quorum service in Settings and with dg --quorum-url - #382
Merged
Merged
Conversation
DASH_FORGE_QUORUM_URL and dash.quorumUrl now apply on testnet and mainnet too, not only on a devnet, and reach git-remote-dash through the child environment. dg doctor names the quorum service in use. A plain-http service on testnet or mainnet is refused at connect, naming the settings that chose it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Settings gains a Quorum service section: a typed https URL is asked for its quorum list, saved in this browser for the network, and used by the SDK after a reload. The trust panel and the key cross-check name the chosen service. The docs explain why there is no DAPI-only fallback (the SDK takes quorum keys only from a quorum service). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (18)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…verywhere Settings now refuses a quorum service whose keys contradict a Platform node's or belong to another network, says so when the browser won't keep the setting, and reads the saved choice after mount. dg hands every git child the exact quorum service, pins a chosen one into a clone's config, trims a devnet's URL like testnet's, and treats a blank --quorum-url as unset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # forge-web/app/settings/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Readers can now choose the quorum service that every proof is checked against, on any network.
https://URL for its quorum list before saving it, so a typo can't stop every read. The URL is saved per network in this browser, and the page reloads to use it. Use the default puts the default back. The trust panel and the quorum-key cross-check name the chosen service, so repository pages still compare its keys with a Platform node's.dg/git-remote-dash: a new global--quorum-urlflag.DASH_FORGE_QUORUM_URLandgit config dash.quorumUrlnow work on testnet and mainnet too; before, they applied only on a devnet. The setting reachesgit-remote-dashthrough the child environment.dg doctornames the quorum service in use on every network. On testnet and mainnet, a plain-http URL is refused when the client connects, and the error names the settings that chose it. A command that never reads the network is not stopped by it.verify-forge.mdexplains how to point each tool at another service and what that service must serve (/quorums,/previous, i.e. Dash's quorum-list-server). It also explains why there is no DAPI-only fallback.BUILDING.mdis updated to match.Why
Roadmap E7 / TS-13: a single quorum endpoint run by DCG gates every proven read. If it is down or blocked, both the web app and
dgstop reading.Why no DAPI-only fallback
The SDK takes quorum keys from a quorum service and nowhere else:
rs-sdk-trusted-context-providerTrustedHttpContextProvider::new_with_url(provider.rs) is the only key source without a Core node. It fetches{base}/quorumsand{base}/previous.WasmTrustedContext.prefetch{Mainnet,Testnet,Devnet}WithUrl(EvoSDK.connect). Untrusted mode checks no proofs.DAPI's
getCurrentQuorumsInforeturns unproved keys for the current set only. The web app already uses it as the second source of the cross-check, never as a replacement. Building a custom RustContextProviderfrom several nodes'getCurrentQuorumsInfowould be possible, but it is out of scope here, and the browser could not use it.How tested
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(new: testnet keeps a chosen service and hands it to the child; mainnet refuses plain http at connect; a devnet keeps its own).tsc,eslint --max-warnings=0,vitest(5650 passed; newlib/quorum-url.test.tsandcomponents/quorum-service-field.test.tsx).dash-forge-qa/evidence/p0/integrity-dx/e7-quorum/):quorums.testnet.networks.dash.org, and the repo page can't resolve. That proves the setting is the SDK's key source;quorums.sakura.networks.dash.org, and the repo page loads;Screenshots
Desktop, dark, with a service chosen:
04-desktop-dark-chosen.png. 390 px, light, default:07-mobile-390-light.png. Both are in the evidence folder above.Limits
dg doctoryet.🤖 Generated with Claude Code