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

Function get_attributes

crates/execution/node/src/engine.rs:418–444  ·  view source on GitHub ↗
(
        eip_1559_params: Option<B64>,
        min_base_fee: Option<u64>,
        timestamp: u64,
    )

Source from the content-addressed store, hash-verified

416 }
417
418 fn get_attributes(
419 eip_1559_params: Option<B64>,
420 min_base_fee: Option<u64>,
421 timestamp: u64,
422 ) -> BasePayloadBuilderAttributes<BaseTxEnvelope> {
423 BasePayloadBuilderAttributes::try_new(
424 B256::ZERO,
425 BasePayloadAttributes {
426 gas_limit: Some(1000),
427 eip_1559_params,
428 min_base_fee,
429 transactions: None,
430 no_tx_pool: None,
431 timestamp_millis_part: None,
432 payload_attributes: PayloadAttributes {
433 timestamp,
434 prev_randao: B256::ZERO,
435 suggested_fee_recipient: Address::ZERO,
436 withdrawals: Some(vec![]),
437 parent_beacon_block_root: Some(B256::ZERO),
438 slot_number: None,
439 },
440 },
441 3,
442 )
443 .expect("valid test payload attributes")
444 }
445
446 #[test]
447 fn test_well_formed_attributes_pre_holocene() {

Calls

no outgoing calls