feat(cfg): add guardnet and ddosnet cfg presets#868
Merged
Conversation
Add res/cfg/guardnet.toml and res/cfg/ddosnet.toml so the binary recognizes the guardnet and ddosnet CFG_PRESET values. The chain-spec data files were added in #841 but the cfg presets were omitted, causing nodes to crash with "Failed to load config guardnet/ddosnet". Omits ics-config, reserve-config, permissioned-candidates-config, and registered-candidates-addresses as those files do not exist for these networks yet.
Contributor
KrisF-Midnight
approved these changes
Mar 5, 2026
justinfrevert
approved these changes
Mar 5, 2026
auto-merge was automatically disabled
March 5, 2026 19:01
Pull request was closed
3 tasks
gilescope
pushed a commit
that referenced
this pull request
Apr 8, 2026
m2ux
added a commit
that referenced
this pull request
Apr 23, 2026
Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux
added a commit
that referenced
this pull request
Apr 23, 2026
Signed-off-by: Mike Clay <mike.clay@shielded.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Summary
res/cfg/guardnet.tomlandres/cfg/ddosnet.tomlso the binary recognizesCFG_PRESET=guardnetandCFG_PRESET=ddosnetFailed to load config guardnet/ddosnetContext
res/cfg/<name>.tomlis how the binary maps aCFG_PRESETenv var to its chain config. All other networks (devnet, govnet, qanet, preview, preprod, mainnet) have these files. Guardnet and ddosnet did not.The new tomls follow the same pattern as existing networks, referencing the files available in
res/guardnet/andres/ddosnet/. Fields forics-config,reserve-config,permissioned-candidates-config, andregistered-candidates-addressesare omitted as those files do not yet exist for these networks.