feat: add AUTOBAHN option to local docker cluster (CON-247)#3220
Open
wen-coding wants to merge 1 commit intomainfrom
Open
feat: add AUTOBAHN option to local docker cluster (CON-247)#3220wen-coding wants to merge 1 commit intomainfrom
wen-coding wants to merge 1 commit intomainfrom
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3220 +/- ##
=======================================
Coverage 59.02% 59.02%
=======================================
Files 2065 2065
Lines 169414 169422 +8
=======================================
+ Hits 99994 100000 +6
Misses 60673 60673
- Partials 8747 8749 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
a67f990 to
2f9bcd2
Compare
masih
approved these changes
Apr 9, 2026
sei-tendermint/privval/file.go
Outdated
| } | ||
| // Write pubkey in autobahn-compatible format alongside the key file. | ||
| pubKeyStr := fmt.Sprintf("validator:%v", pvKey.PubKey.String()) | ||
| pubKeyPath := filepath.Join(filepath.Dir(outFile), "validator_pubkey.txt") |
sei-tendermint/privval/file.go
Outdated
| return err | ||
| } | ||
| // Write pubkey in autobahn-compatible format alongside the key file. | ||
| pubKeyStr := fmt.Sprintf("validator:%v", pvKey.PubKey.String()) |
Collaborator
There was a problem hiding this comment.
ditto re %s for string concat; that's more explicit given we want the strigner value of key and would safely fail if anything but string is passed in.
- NodeKey.SaveAs writes node_pubkey.txt alongside node_key.json - FilePVKey.Save writes validator_pubkey.txt alongside priv_validator_key.json - step1 copies pubkey files to shared volume for cross-node access - step4 generates autobahn JSON config from all nodes' pubkeys when AUTOBAHN=true - Wired through docker-compose.yml and Makefile Usage: AUTOBAHN=true make docker-cluster-start Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39f68a7 to
be2e651
Compare
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
NodeKey.SaveAs()writesnode_pubkey.txtalongsidenode_key.jsoninnode:ed25519:public:<hex>formatFilePVKey.Save()writesvalidator_pubkey.txtalongsidepriv_validator_key.jsoninvalidator:ed25519:public:<hex>formatstep1_configure_init.shcopies both pubkey files to shared volume (build/generated/node_N/)step4_config_override.shreads all nodes' pubkeys, generates autobahn JSON config, injects path intoconfig.tomlAUTOBAHNenv var wired throughdocker-compose.ymlandMakefileUsage
Test plan
AUTOBAHN=true make docker-cluster-start— all 4 nodes start with autobahn enabledgo build ./...passes🤖 Generated with Claude Code