-
Notifications
You must be signed in to change notification settings - Fork 781
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
[Merged by Bors] - Allow per validator fee recipient via flag or file in validator client (similar to graffiti / graffiti-file) #2924
Conversation
…t-file flags in validator client)
Hmm, it was a nice try, but doesn't work at the moment...
Seems I missed something - Looking into it.. |
@pk910 This is looking good :) Your issue looks like incorrect parsing of the address. You can try printing out the
You would need to request for change in the api specification as having a different behaviour would break lighthouse vc compatibility with other client beacon nodes. The api specification is maintained here https://github.com/ethereum/beacon-apis/issues |
…ice that generates proposer preparations for all known validators at the beginning of each epoch
0b4ad35
to
9384165
Compare
9384165
to
4330306
Compare
…-validator # Conflicts: # consensus/types/src/lib.rs
I've reimplemented the way how the fee-recipient is transmitted to the BN. There is now a new "proposal preparation" service in VC that sends the fee-recipients of all known validators to the BN at the beginning of each epoch using the new /eth/v1/validator/prepare_beacon_proposer api. This is a working prototype that has successfully proposed blocks with individual fee-recipients for me in the kintsugi net. A few things that should be looked into:
It can probably be implemented in a much cleaner way, so I'm totally fine if you decide to throw it away and redo yourself ;) |
… too long and looks bad in log file :D)
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.
This is looking really good, we're so close. I've left some minor requests here, I'm keen to merge after they're addressed.
Thanks again for this high-value contribution 🙏
beacon_node/http_api/src/lib.rs
Outdated
.epoch() | ||
.map_err(warp_utils::reject::beacon_chain_error)?; | ||
|
||
info!( |
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.
info!( | |
debug!( |
This might get a little noisy when polling once per slot (per validator client).
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.
Agree 👍
Should we change the log entry on VC side to debug
, too?
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.
Oh yep, good idea!
Co-authored-by: Paul Hauner <[email protected]>
@paulhauner |
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.
This looks great, I just made suggestions for your comment in #2924 (comment).
After those a resolved, it's merge time 🎉
Co-authored-by: Paul Hauner <[email protected]>
@paulhauner |
Let's goooo bors r+ |
…t (similar to graffiti / graffiti-file) (#2924) ## Issue Addressed #2883 ## Proposed Changes * Added `suggested-fee-recipient` & `suggested-fee-recipient-file` flags to validator client (similar to graffiti / graffiti-file implementation). * Added proposer preparation service to VC, which sends the fee-recipient of all known validators to the BN via [/eth/v1/validator/prepare_beacon_proposer](ethereum/beacon-APIs#178) api once per slot * Added [/eth/v1/validator/prepare_beacon_proposer](ethereum/beacon-APIs#178) api endpoint and preparation data caching * Added cleanup routine to remove cached proposer preparations when not updated for 2 epochs ## Additional Info Changed the Implementation following the discussion in #2883. Co-authored-by: pk910 <[email protected]> Co-authored-by: Paul Hauner <[email protected]> Co-authored-by: Philipp K <[email protected]>
Timed out. |
bors retry |
…t (similar to graffiti / graffiti-file) (#2924) ## Issue Addressed #2883 ## Proposed Changes * Added `suggested-fee-recipient` & `suggested-fee-recipient-file` flags to validator client (similar to graffiti / graffiti-file implementation). * Added proposer preparation service to VC, which sends the fee-recipient of all known validators to the BN via [/eth/v1/validator/prepare_beacon_proposer](ethereum/beacon-APIs#178) api once per slot * Added [/eth/v1/validator/prepare_beacon_proposer](ethereum/beacon-APIs#178) api endpoint and preparation data caching * Added cleanup routine to remove cached proposer preparations when not updated for 2 epochs ## Additional Info Changed the Implementation following the discussion in #2883. Co-authored-by: pk910 <[email protected]> Co-authored-by: Paul Hauner <[email protected]> Co-authored-by: Philipp K <[email protected]>
Pull request successfully merged into unstable. Build succeeded: |
Issue Addressed
#2883
Proposed Changes
suggested-fee-recipient
&suggested-fee-recipient-file
flags to validator client (similar to graffiti / graffiti-file implementation).Additional Info
Changed the Implementation following the discussion in #2883.