MCPcopy Create free account
hub / github.com/base/base / validate_version_specific_fields

Method validate_version_specific_fields

crates/execution/node/src/engine.rs:249–272  ·  view source on GitHub ↗
(
        &self,
        version: EngineApiMessageVersion,
        payload_or_attrs: PayloadOrAttributes<
            '_,
            Types::ExecutionData,
            <Types as PayloadTypes>::Payload

Source from the content-addressed store, hash-verified

247 ChainSpec: Upgrades + Send + Sync + 'static,
248{
249 fn validate_version_specific_fields(
250 &self,
251 version: EngineApiMessageVersion,
252 payload_or_attrs: PayloadOrAttributes<
253 '_,
254 Types::ExecutionData,
255 <Types as PayloadTypes>::PayloadAttributes,
256 >,
257 ) -> Result<(), EngineObjectValidationError> {
258 validate_withdrawals_presence(
259 self.chain_spec(),
260 version,
261 payload_or_attrs.message_validation_kind(),
262 payload_or_attrs.timestamp(),
263 payload_or_attrs.withdrawals().is_some(),
264 )?;
265 validate_parent_beacon_block_root_presence(
266 self.chain_spec(),
267 version,
268 payload_or_attrs.message_validation_kind(),
269 payload_or_attrs.timestamp(),
270 payload_or_attrs.parent_beacon_block_root().is_some(),
271 )
272 }
273
274 fn ensure_well_formed_attributes(
275 &self,

Callers

nothing calls this directly

Calls 6

is_someMethod · 0.80
chain_specMethod · 0.45
timestampMethod · 0.45
withdrawalsMethod · 0.45

Tested by

no test coverage detected