From 39728dd94ae404df3c963829186ff13c0fbf6a13 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 11 Jan 2025 12:14:14 +0100 Subject: [PATCH] docs --- book/sources/exex/tracking-state/src/bin/2.rs | 2 +- crates/payload/builder/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/sources/exex/tracking-state/src/bin/2.rs b/book/sources/exex/tracking-state/src/bin/2.rs index 56ee1063259e..dba9714c5278 100644 --- a/book/sources/exex/tracking-state/src/bin/2.rs +++ b/book/sources/exex/tracking-state/src/bin/2.rs @@ -7,7 +7,7 @@ use std::{ use alloy_primitives::BlockNumber; use futures_util::{FutureExt, TryStreamExt}; use reth::{ - api::{Block, BlockBody, FullNodeComponents}, + api::{BlockBody, FullNodeComponents}, builder::NodeTypes, primitives::EthPrimitives, }; diff --git a/crates/payload/builder/src/lib.rs b/crates/payload/builder/src/lib.rs index b6191ea7fd11..e5f1085e1b29 100644 --- a/crates/payload/builder/src/lib.rs +++ b/crates/payload/builder/src/lib.rs @@ -31,7 +31,7 @@ //! use alloy_consensus::Header; //! use alloy_primitives::U256; //! use reth_payload_builder::{EthBuiltPayload, PayloadBuilderError, KeepPayloadJobAlive, EthPayloadBuilderAttributes, PayloadJob, PayloadJobGenerator, PayloadKind}; -//! use reth_primitives::{Block, BlockExt}; +//! use reth_primitives::{Block, SealedBlock}; //! //! /// The generator type that creates new jobs that builds empty blocks. //! pub struct EmptyBlockPayloadJobGenerator; @@ -67,7 +67,7 @@ //! }, //! ..Default::default() //! }; -//! let payload = EthBuiltPayload::new(self.attributes.id, Arc::new(block.seal_slow()), U256::ZERO, None, None); +//! let payload = EthBuiltPayload::new(self.attributes.id, Arc::new(SealedBlock::seal(block)), U256::ZERO, None, None); //! Ok(payload) //! } //!