-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node::Id
changes values to capital letters in hex encoding
#971
Comments
I kind of disagree with this. I think there should be a canonical capitalization which is always output consistently, and inputs that are non-canonical can be accepted, but I don't think it's expected they should round trip to the input. As an example edge case here, what about this sort of capitalization?
If anything, I think it'd be much more confusing if that were echoed back verbatim. |
The node ID as defined in TM Go uses |
@tzemanovic could you please provide more detail as to how to reproduce this issue? With error logs, config, etc. It'll provide clarity on exactly where the problem is and who should be responsible for fixing it. |
Sure, in anoma, we're using tendermint-rs to update the configuration for tendermint. Because its
|
Can Tendermint validly have two different peers on the same network with IDs |
I suppose it states in the code that node IDs must be lowercase: https://github.com/tendermint/tendermint/blob/d32913c889b3e7a94c6fc73ad2669523d4ba23e4/types/node_id.go#L22 So we should conform to that. |
Steps to reproduce
The
node::Id
type (used in e.g.TendermintConfig
vianet::Address
) rewrites values to capital letters when parsed withFromStr
and serialized withDisplay
. When used with e.g. the persistent_peers field in the p2p config, the capitalized node ID then do not match on connection authentication and hence cause failures.What's the definition of "done" for this issue?
The
node::Id
shouldn't modify the values parsed from raw strings.The text was updated successfully, but these errors were encountered: