Repository navigation
Devnet upgrades start at four nodes at once; adopt a dashnet that accepts the devnet's recipes - #70
ktechmidas wants to merge 2 commits into
Conversation
Both upgrade forms defaulted to one node at a time, so every rollout was serial unless the operator changed it; no operation has yet run with more. A devnet is owned outright and disposable: its forms now start at four. The engine still trims a batch to what the observed quorum can spare. Testnet and every other network keep the serial default, and an API request that omits the policy is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A devnet moves to a newer dashnet only when the build reports the same node and bootstrap recipes as the devnet's plans. The engine also operates the immediately preceding node and upgrade recipes, but the console could not know that, so a devnet created before the last recipe change never adopted a newer build and its binary had to be copied by hand. `dashnet recipes` now lists the earlier recipes a build accepts (nodeAccepts, upgradeAccepts; dashpay/dash-network-go#36). Adoption, and the move to a newer build on resume, honour those lists. A build that predates the fields lists none, so the exact-match rule is unchanged for it. The bootstrap and mining recipes must still be the same, and a build is still adopted only when strictly newer. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Prepared by Claude (infraclaw role) at latte's request. Companion to dashpay/dash-network-go#36.
What changes
Devnet upgrades start at four nodes at once. Both upgrade forms defaulted to one node at a time, so every rollout was serial unless the operator changed it, and none has yet run with more. On a devnet the forms now start at four; the engine trims a batch to what the observed quorum can spare. Testnet and every other network keep the serial default. An API request that omits the policy is unchanged.
A devnet adopts a newer dashnet that accepts its recipes. Adoption required the new build to report exactly the node recipe the devnet's plans bind. The engine also operates the immediately preceding node and upgrade recipes, but the console could not know that, so a devnet created before the last recipe change never adopted a newer build and had to have its binary copied by hand. With dashpay/dash-network-go#36,
dashnet recipeslists the earlier recipes a build accepts (nodeAccepts,upgradeAccepts), and adoption and resume-on-a-newer-build honour them. Still required: the same bootstrap and mining recipes, and a strictly newer build.Notes for review
Verification
Run locally (Node 22, Windows):
npm run lint,npm run build, and the new unit tests for the default and forrecipeAccepted, all passing.Not verified locally: the two adoption tests in
agent/agent.test.jsthat I extended. They execute shell-script stand-ins fordashnet, which this machine cannot run; the same 11 tests fail there before and after this change. CI runs them here. Nothing in this PR has been deployed.🤖 Generated with Claude Code
Summary by CodeRabbit