Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions crates/node/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ where
.validate()
.map_err(|e| PayloadBuilderError::Internal(RethError::Other(Box::new(e))))?;

// Get the latest state provider
let state_provider = self.client.latest().map_err(PayloadBuilderError::other)?;
// Get the state provider for the parent header
tracing::info!(
"Creating state provider using parent hash: {}",
attributes.parent_hash
);
Comment thread
damiannolan marked this conversation as resolved.
Outdated
let state_provider = self
.client
.state_by_block_hash(attributes.parent_hash)
.map_err(PayloadBuilderError::other)?;

// Create a database from the state provider
let db = StateProviderDatabase::new(&state_provider);
Expand Down
Loading