Skip to content

v0.22.0#3687

Merged
elitegreg merged 7 commits intomainfrom
gm/v0.22.0
May 8, 2026
Merged

v0.22.0#3687
elitegreg merged 7 commits intomainfrom
gm/v0.22.0

Conversation

@elitegreg
Copy link
Copy Markdown
Contributor

No description provided.

ben-malbeclabs and others added 6 commits May 8, 2026 20:01
Community stamping only resolved colors for users with a tenant
assigned. Since most users (all of mainnet, most of testnet) have no
tenant, they were silently skipped. Add an else branch that calls
resolveTenantColors with nil includeTopologies, which falls through to
the default UNICAST-DEFAULT color.
When creating a VPNv4 loopback with onchain allocation, the instruction
now accepts optional topology PDA accounts and allocates a
FlexAlgoNodeSegment for each. This replaces the activator's post-
activation backfill that was lost during the activator removal.

The CLI automatically discovers existing topologies and passes them to
the instruction, so `doublezero device interface create ... --loopback-type
vpn-ipv4` assigns all node segments atomically — no manual steps.

Also rename BackfillTopology → AssignTopologyNodeSegments across the
codebase (instruction discriminant 110 unchanged).
- cli/device-interface-get: cache list_topology in a HashMap so we
  don't refetch per flex-algo segment
- create/update: validate topology accounts by first-byte
  AccountType::Topology in addition to program-owner
- update: allow contributor.owner to drive update_topologies, not just
  the foundation allowlist
- update: size kept Vec by max(existing, desired) so we don't realloc
  when the desired set grows
- tests: add test_update_topologies_allowed_for_contributor exercising
  the contributor-owner authorization branch
- changelog: add Unreleased entries covering this PR's smartcontract,
  controller, and CLI changes
Base automatically changed from bc/rfc18-devnet-fixes to main May 8, 2026 22:36
@elitegreg elitegreg enabled auto-merge (squash) May 8, 2026 22:39
@elitegreg elitegreg disabled auto-merge May 8, 2026 22:39
@elitegreg elitegreg enabled auto-merge (squash) May 8, 2026 22:39
@ben-malbeclabs ben-malbeclabs self-requested a review May 8, 2026 22:40
@elitegreg elitegreg merged commit 8685bea into main May 8, 2026
33 checks passed
@elitegreg elitegreg deleted the gm/v0.22.0 branch May 8, 2026 22:54
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