fix(server): wire Identity config to node.UserIdent in buildNode#2105
Merged
kamuikatsurgi merged 1 commit intodevelopfrom Mar 5, 2026
Merged
fix(server): wire Identity config to node.UserIdent in buildNode#2105kamuikatsurgi merged 1 commit intodevelopfrom
kamuikatsurgi merged 1 commit intodevelopfrom
Conversation
|
Contributor
|
Does this work for config.toml? |
Contributor
Author
It should work for Identity string `hcl:"identity,optional" toml:"identity,optional"` |
kamuikatsurgi
approved these changes
Mar 5, 2026
lucca30
pushed a commit
that referenced
this pull request
Mar 5, 2026
(cherry picked from commit 936ac97)
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.



Description
Fix the
--identityflag not being applied when usingbor server.Problem
The
bor servercommand accepts anIdentityconfig field butbuildNode()never setsnode.Config.UserIdent, causing the identity to be silently ignored.This means nodes running with
bor server --identity=xxxalways show the default client name in P2P communications, regardless of the--identityflag value.Note: The legacy CLI (
bor --identity=xxx) is unaffected as it usessetNodeUserIdent()inherited from go-ethereum.Root Cause
The
bor servercommand uses a separate HCL-based configuration system (internal/cli/server/) that doesn't exist in upstream go-ethereum. ThebuildNode()function manually constructs anode.Configstruct but was missing theUserIdentfield:Fix
Add the missing field assignment in
buildNode():Changes
Checklist
Cross repository changes
Testing
Manual tests
bor server --identity=my-node ...polycli p2p ping <enode>to observe the peer's client name