Skip to content

smartcontract/cli,client: drop activator-only pollers and Rejected branches#3700

Open
elitegreg wants to merge 1 commit into
gm/3613-collapse-onchainallocation-flag-branchesfrom
gm/3614-rust-sdk-cli-drop-onchainallocation-flag-gated-code
Open

smartcontract/cli,client: drop activator-only pollers and Rejected branches#3700
elitegreg wants to merge 1 commit into
gm/3613-collapse-onchainallocation-flag-branchesfrom
gm/3614-rust-sdk-cli-drop-onchainallocation-flag-gated-code

Conversation

@elitegreg
Copy link
Copy Markdown
Contributor

@elitegreg elitegreg commented May 13, 2026

Summary

  • Drop poll_for_user_activated and poll_for_multicastgroup_activated from cli/src/poll_for_activation.rs; both watched activator-driven transitions that no longer happen post-RFC-11 (creates are atomic to Activated).
  • Trim the Rejected status arm from poll_for_device_activated and poll_for_link_activated — also activator-driven.
  • CLI --wait callers (user create / create-subscribe / subscribe, multicastgroup create / update) and client/doublezero connect swap the polling step for a single get-with-retry that only rides out RPC lag.
  • Add CHANGELOG entry under Unreleased.

The SDK command structs that still expose use_onchain_(de)allocation fields (user::activate / closeaccount, link::activate / closeaccount, multicastgroup::activate / deactivate, device::interface::activate / remove) are intentionally untouched — those activate/deactivate/remove/closeaccount commands are scheduled for wholesale removal in a follow-up.

Phase 4, PR 4.2 of the activator-removal effort. Refs #3607, closes #3614.

Testing Verification

  • `cargo test -p doublezero_cli` — 323 passed.
  • `cargo test -p doublezero` — 119 passed (covers the simplified poll_for_user_activated in connect.rs across the IBRL, multicast-publisher, multicast-subscriber, and edge connect flows).
  • `cargo clippy -p doublezero_sdk -p doublezero_cli -p doublezero --all-targets -- -Dclippy::all -Dwarnings` — clean.

@elitegreg elitegreg marked this pull request as ready for review May 13, 2026 20:57
…anches

- poll_for_activation drops poll_for_user_activated and
  poll_for_multicastgroup_activated; both watched activator-driven
  transitions that no longer happen post-RFC-11 (creates are atomic to
  Activated).
- poll_for_device_activated and poll_for_link_activated drop the
  Rejected status arm — also activator-driven.
- CLI --wait callers (user create/create-subscribe/subscribe,
  multicastgroup create/update) and client/doublezero connect swap the
  polling step for a single get-with-retry that only rides out RPC lag.
- CHANGELOG entry under Unreleased.

The SDK command structs that still expose use_onchain_(de)allocation
fields are intentionally untouched — those activate/deactivate/remove/
closeaccount commands are scheduled for wholesale removal.

Phase 4, PR 4.2 of the activator-removal effort. Refs #3607, closes #3614.
@elitegreg elitegreg force-pushed the gm/3614-rust-sdk-cli-drop-onchainallocation-flag-gated-code branch from 4209059 to 9ff501d Compare May 13, 2026 20:59
@elitegreg elitegreg changed the title smartcontract/sdk,cli,client: drop OnChainAllocation flag-gated code smartcontract/cli,client: drop activator-only pollers and Rejected branches May 13, 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.

2 participants