Skip to content

Conversation

@chong-he
Copy link
Member

@chong-he chong-he commented Jun 4, 2025

Issue Addressed

Additional Info

Thank you @ethDreamer and @michaelsproul for the help and guidance

@chong-he chong-he added work-in-progress PR is a work-in-progress val-client Relates to the validator client binary UX-and-logs labels Jun 4, 2025
.await,
),
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the wrong place to do this. This function will call produce_block_with_verification() which will call produce_block_on_state() which will call the graffiti_calculator.get_graffiti() again. I would suggest you pass this argument down the function calls along with the graffiti. So maybe (inside graffiti_calculator.rs) create some new enum:

enum GraffitiSettings {
    Unspecified,
    Specified {
        graffiti: Graffiti,
        policy: GraffitiPolicy,
    }
}

impl GraffitiSettings {
    fn new(validator_graffiti: Option<Graffiti>, policy: GraffitiPolicy) {
        validator_graffiti.map(|graffiti| Self::Specified {
            graffiti,
            policy,
        })
        .unwrap_or(Self::Unspecified)
    }
}

and pass that down through the functions. Then you'd want to change get_graffiti to:

pub async fn get_graffiti(&self, graffiti_settings: GraffitiSettings) -> Graffiti

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the comment, made some amendment based on your comment. If you have some time to spare, will appreciate for another look to see if this is on the right track @ethDreamer

@jimmygchen jimmygchen removed the v8.0.0 Q4 2025 Fusaka Mainnet Release label Sep 30, 2025
jimmygchen

This comment was marked as outdated.

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Dec 11, 2025
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved modulo some very small doc/CLI flag tweaks

metrics being collected.
--graffiti-append
When used, client version info will be automatically appended to user
custom graffiti.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably have a note that this should only be used with a Lighthouse BN (due to using a non-standard query parameter).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revised in 63746d8

Also revise the word from append to prepend, as the client version info is attached before user graffiti, not after

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, makes sense!

chong-he and others added 2 commits December 15, 2025 16:54
Co-authored-by: Michael Sproul <michaelsproul@users.noreply.github.com>
@chong-he
Copy link
Member Author

Did some testing with Kurtosis local testnet, by adding the following to network_params.yaml:

vc_extra_params:
      - --graffiti-append
      - --graffiti=testing123

Before, graffiti is: testing123
After, graffiti is: GE6978LH49e1 testing123

@chong-he chong-he added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Dec 16, 2025
@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Dec 16, 2025
@mergify mergify bot added the queued label Dec 16, 2025
@mergify
Copy link

mergify bot commented Dec 16, 2025

Merge Queue Status

✅ The pull request has been merged at 45a1328

This pull request spent 40 minutes 55 seconds in the queue, including 38 minutes 52 seconds running CI.
The checks were run on draft #8587.

Required conditions to merge
  • check-success=local-testnet-success
  • check-success=test-suite-success

mergify bot added a commit that referenced this pull request Dec 16, 2025
@mergify mergify bot merged commit 86c2b7c into sigp:unstable Dec 16, 2025
37 checks passed
@mergify mergify bot removed the queued label Dec 16, 2025
@chong-he chong-he deleted the graffiti branch December 16, 2025 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge This PR is ready to merge. UX-and-logs val-client Relates to the validator client binary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants