Skip to content

Conversation

@shane-moore
Copy link

@shane-moore shane-moore commented Oct 16, 2025

Changes

  • renamed execution payload header to execution payload bid (#4525)
  • removed builder_payment_threshold_numerator and builder_payment_threshold_denominator from chain_spec Config since are constants per the spec
  • PayloadAttestationMessage.signature type updated to Signature since is an unaggregated signature
  • add some envelope helpers, which are useful in later VC -> beacon node envelope requests PR's

@ethDreamer

}
}
}

Copy link
Member

Choose a reason for hiding this comment

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

This function isn't used so I would leave it out. We have other ways of doing these things if it is needed.

Copy link
Author

Choose a reason for hiding this comment

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

yes, alternatively, we could match on fork_name, kind of like this:

SupportedProtocol::BlocksByRangeV2 => match fork_name {
            Some(ForkName::Altair) => Ok(Some(RpcSuccessResponse::BlocksByRange(Arc::new(
                SignedBeaconBlock::Altair(SignedBeaconBlockAltair::from_ssz_bytes(decoded_buffer)?),
            )))),

            Some(ForkName::Base) => Ok(Some(RpcSuccessResponse::BlocksByRange(Arc::new(
                SignedBeaconBlock::Base(SignedBeaconBlockBase::from_ssz_bytes(decoded_buffer)?),
            )))),

the idea was that it would be perhaps more extensible to use from_ssz_bytes_for_fork so you wouldn't have to add variants for new forks in various places across the repo. just add the fork variant once to SignedExecutionPayloadEnvelope::from_ssz_bytes_for_fork instead, so you can just do things like:

   Ok(Some(RpcSuccessResponse::ExecutionPayloadEnvelopesByRange(
                        Arc::new(SignedExecutionPayloadEnvelope::from_ssz_bytes_for_fork(
                            decoded_buffer,
                            fork_name,
                        )?),
                    )))

i used the from_ssz_bytes_for_fork in a couple p2p boilerplate PR's for ExecutionPayloadEnvelopesByRange and ExecutionPayloadEnvelopesByRoot

but can easily update them to just use match fork_name approach instead. is preferable to kill from_ssz_bytes_for_fork and go this route?

Copy link
Member

Choose a reason for hiding this comment

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

it's rare that we need a method like this because usually when we decode from the network we have context bytes to tell us what we decode and then we would do something like:

ExecutionPayloadEnvelope::Gloas(<_>::from_ssz_bytes(bytes))

when we do need a method for decoding by fork variants, we have traits for that. Since the future fork doesn't even exist yet, it's best to leave out for now.

Copy link
Author

Choose a reason for hiding this comment

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

i feel you on that! thanks for the context about context bytes ha

just removed SignedExecutionPayloadEnvelope::from_ssz_bytes_for_fork in latest commit


impl<E: EthSpec> SignedExecutionPayloadEnvelope<E> {
/// Create a new `SignedExecutionPayloadEnvelope` from an `ExecutionPayloadEnvelope` and `Signature`.
pub fn from_envelope(envelope: ExecutionPayloadEnvelope<E>, signature: Signature) -> Self {
Copy link
Member

Choose a reason for hiding this comment

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

This function is also not used so I would leave it out.

Copy link
Author

Choose a reason for hiding this comment

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

i think this helper is just used later in this VC block production PR here:
https://github.com/shane-moore/lighthouse/blob/4eac78c70d1b1cb046180d21b6f81ffa5d617d9a/validator_client/lighthouse_validator_store/src/lib.rs#L760-L784

perhaps I just add the from_envelope to that PR instead?

Copy link
Member

Choose a reason for hiding this comment

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

no that's fine we can leave this in then

@shane-moore shane-moore force-pushed the gloas-containers-additions branch from 433ea22 to fafc062 Compare October 16, 2025 21:14
@shane-moore shane-moore force-pushed the gloas-containers-additions branch from fafc062 to f3e822b Compare October 16, 2025 21:17
@chong-he chong-he added the gloas label Oct 21, 2025
@ethDreamer ethDreamer merged commit 76cb8d5 into sigp:gloas-containers Oct 21, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants