-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Include node identity in the P2P advertised client version. #8830
Conversation
It looks like @jimpo signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
I would love to see this working! However, we need to check: Isn't the identity parameter used to override the node key? In this case, it should not be broadcasted as NAME. Maybe we should introduce a --node-key. |
@5chdn By node key, do you mean the P2P network authentication key? There already is a separate |
We already read the I'm slightly weary of doing this since I don't know what assumptions have been built around having a specific |
@folsen Regarding assumptions about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm not very familiar with the --identity
flag, had a look and it seems as @jimpo suggested is only used in the Hello
packet (after this PR) and in the parity_nodeName
RPC. Would like someone else to also have a look.
Regarding "Parity/NAME/.." vs "NAME/Parity/.." I'm not sure about what I prefer but I'm fine with either.
In #6852 it is claimed that this used to work (apparently with "Parity/NAME/.." format). But I checked out some old v1.7 tags and the code is similar to what we have now, just using |
If that ever used to work it must be way earlier, maybe 1.3 |
It seems like @arkpar s changes are not directly related to this? I'm having a hard time following along in the code as there are plenty of I'm a little wary of adding more logic (albeit simple) to handle the version string, e.g. it's not obvious that Ideally the fix should be in |
Seems to work.
Could you put it after the
Should this also be part of the official version string? I.e.,:
(Maybe limited to 8 chars) |
@5chdn I don't think we should add it to the version string, only peer announces. It's your node but it's our version 😉. @dvdplm I think we can add a |
I think this would be wise. |
@andresilva AFAICT the main usecase of this is to show your name on ethstats, which would make it necessary to report as version right? |
@folsen I meant more for things like |
@dvdplm I don't think the |
@jimpo I hear you on the "version is the version" argument, although the same could be said for "client_version". |
@dvdplm @andresilva @folsen needs a 2nd review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My grumbles remain but as I don't have anything better to suggest I'm fine with this.
* master: ethstore: retry deduplication of wallet file names until success (#8910) Update ropsten.json (#8926) Include node identity in the P2P advertised client version. (#8830) Allow disabling local-by-default for transactions with new config entry (#8882) Allow Poll Lifetime to be configured via CLI (#8885)
…rp_sync_on_light_client * 'master' of https://github.com/paritytech/parity: Include node identity in the P2P advertised client version. (openethereum#8830) Allow disabling local-by-default for transactions with new config entry (openethereum#8882) Allow Poll Lifetime to be configured via CLI (openethereum#8885) cleanup nibbleslice (openethereum#8915) Hardware-wallets `Clean up things I missed in the latest PR` (openethereum#8890) Remove debian/.deb and centos/.rpm packaging scripts (openethereum#8887) Remove a weird emoji in new_social docs (openethereum#8913) Minor fix in chain supplier and light provider (openethereum#8906)
Fixes #6852.
Geth client versions are "Geth/NAME/VERSION/COMPILER", whereas this PR puts name at the front, like "NAME/Parity/VERSION/COMPILER". This is out of convenience and because I think it makes more sense that way, but I could change it to go after Parity if people prefer.