Skip to content

feat: CON-1718 Introduce default_initial_dkg_subnet_id field to state's NetworkTopology#10235

Merged
eichhorl merged 1 commit into
masterfrom
eichhorl/default-initial-dkg-subnet-key-dsm
May 15, 2026
Merged

feat: CON-1718 Introduce default_initial_dkg_subnet_id field to state's NetworkTopology#10235
eichhorl merged 1 commit into
masterfrom
eichhorl/default-initial-dkg-subnet-key-dsm

Conversation

@eichhorl
Copy link
Copy Markdown
Contributor

@eichhorl eichhorl commented May 15, 2026

#9782 introduced the ability to route SetupInitialDKG requests (caused by subnet creation/recovery/splitting) to arbitrary subnets, instead of always handling them on NNS.

This was done by extending proposal payloads to create/recover/split a subnet with an optional SubnetId field, to which the request should be routed.

However, this approach delegates the responsibility of choosing a suitable subnet to the proposer, which is brittle and difficult to test.

Instead, this PR begins the implementation for introducing a "default initial DKG subnet" to which all SetupInitialDKG requests should be routed, unless specified differently by the proposal payload. In particular, this PR introduces a new field holding the ID of the default initial DKG subnet, as part of the replicated state's NetworkTopology. For compatibility reasons, the field remains None for now, until it is rolled out to all subnets.

Note that it must still be possible to override the default initial DKG subnet (at least as part of the recovery proposal), for the case that the default DKG subnet is the one being recovered.

@github-actions github-actions Bot added the feat label May 15, 2026
@eichhorl eichhorl marked this pull request as ready for review May 15, 2026 13:02
@eichhorl eichhorl requested a review from a team as a code owner May 15, 2026 13:02
@eichhorl eichhorl added this pull request to the merge queue May 15, 2026
Merged via the queue into master with commit 1cae983 May 15, 2026
47 checks passed
@eichhorl eichhorl deleted the eichhorl/default-initial-dkg-subnet-key-dsm branch May 15, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants