-
Notifications
You must be signed in to change notification settings - Fork 283
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
Add clients information to user's graffiti when producing a block #8107
Conversation
ohh I will fix it. |
5, | ||
MINUTES); |
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.
5 minutes is a long timeout for a default...
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.
copy-paste
will fix
public void formatClientInfo_shouldFitInDesiredLength() { | ||
graffitiBuilder.onExecutionClientVersion(BESU_CLIENT_VERSION); | ||
|
||
// 20: LH1be52536BU0f91a674 |
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.
we're really bundling multiple tests here, so if it ever breaks we'll only see the first failure
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.
ok, will split it
assertThat( | ||
graffitiBuilder.extractGraffiti( | ||
Optional.of(Bytes32Parser.toBytes32(asciiGraffiti0)), 0)) | ||
.isEqualTo(""); |
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.
same with most of this suite, we're putting a ton of tests into 1 test case, so breakage will mean that we only see first fail.
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.
ok, will split it
AUTO_END: (default) Clients info is appended after user's graffiti if any. | ||
AUTO_START: Clients info is added before user's graffiti. |
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.
i think the original ticket had a definite idea about where it should be, so allowing users to choose it somewhere else is probably bad....
https://hackmd.io/@wmoBhF17RAOH2NZ5bNXJVg/BJX2c9gja
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.
its a long confusing thread, we may want to just verify what people are thinking on that front
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.
Yeah, I saw this one, mentioned it. It looks just like one of the options/opinions.
It's not a standard and not a big deal to parse it from the both sides.
User must have 100% right to put whatever he wants there
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.
Anyway I can modify it to have only START options (removing START) or mention in thread discussion that we want to give user an option to put it on any side. My personal view that END option looks better for user as graffiti belongs to him in the first place. But as I said I'm ok for any resolution.
NAME_END: Only clients names are appended after user's graffiti. Good when you don't want to disclose clients versions. | ||
NAME_START: Clients names are added before user's graffiti. | ||
NONE: Clients information is not added to the graffiti. |
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.
i'd basically only offer
AUTO - which applies client name and version tag to graffiti, and is default
CLIENT_NAME - allows us to apply client name only to the graffiti. This would be greatly appreciated so that client information can be more accurate kind of description
DISABLED - would be to turn this feature off
worth checking other implementation teams to see their plans if we haven't...
also i think we can actually use enum in cli args which may make this whole thing a little cleaner rather than making it string...
I think I would simplify it as well. From aesthetic point of view, I don't think many users (if any) will prefer
I prefer to keep it simple unless we start to get specific user requests that they want to append at start. And then basically append them to end with a space like how it is in this PR. Opinions? |
@rolfyone ready for review I've checked other clients: Lighthouse - sigp/lighthouse#5290 implementation does not merge user's graffiti with client information, either user's graffiti or client information Only Lodestar considering to implement merge optionally, so there will be few merged graffitis in network. It sounds for me like we could freely choose how to merge, add clients info to the beginning or to the end of the string. I suggest to add clients info to the end like: "Happy block TKBU". But your decision on this is final. Also I'm thinking now that we are not covering this case: And maybe |
Doc draft
|
I still think we should keep it simple...
thats all we need, if people change graffiti they can change this too |
@rolfyone it's all we have in this PR. I've just renamed |
previous PR has another 2 options... i'll check code, just trying to be clear about how many options we really want |
@rolfyone I've removed it. Now just the list you posted. |
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
PR Description
Adds
--validators-graffiti-client-append-format
to append clients information to user graffitiStart from
ValidatorOptions
orClientGraffitiAppendFormat
.Docs to be added.
Fixed Issue(s)
Fixes #8074
Documentation
doc-change-required
label to this PR if updates are required.Changelog