Migrate allocator role to sudo key#161
Conversation
|
2621f43 to
24aad93
Compare
24aad93 to
07eff0a
Compare
✅ Fix verified against live mainnet stateThe updated migration (
Same test, opposite result. On live state the sudo allocator now ends up registered as an agent and holding the prior allocator's external inbound stake, plus the run is idempotent and the post-state decodes cleanly. What fixed it:
Remaining notes (all non-blocking)
Suggestion for the migration toolingWorth adding |
Summary
Sudo::Keyand makes it the sole governance allocator.torus0registration path using the fixed allocator namenew_allocator, reusing prior allocator URL/metadata.torus0::stake::transfer_stakebefore old allocator agents are deregistered.Live-state checks
StakingTo/StakedBykeysets match for those edges.new_allocator.Verification
cargo fmtSKIP_WASM_BUILD=1 cargo check -p torus-runtimecargo clippy -p torus-runtime -p pallet-governance -p pallet-torus0 --tests -- -D warningsSKIP_WASM_BUILD=1 cargo test -p torus-runtime -p pallet-governance -p pallet-torus0SKIP_WASM_BUILD=1 cargo test --workspace --exclude torus-client --exclude torus-mcpjust try-runtime-upgrade-mainnetNote
Full
just check/just testand local pre-push hook hittorus-clientbuild.rs DNS resolution forapi.testnet.torus.network. The runtime-focused checks and mainnet try-runtime upgrade pass.