chore: relax PayloadBuilderService bound (#13456)

This commit is contained in:
Arsenii Kulikov
2024-12-19 16:58:07 +02:00
committed by GitHub
parent b271f0cc6d
commit 058cfe2f98
5 changed files with 15 additions and 9 deletions

View File

@ -19,7 +19,7 @@ use reth_evm::state_change::post_block_withdrawals_balance_increments;
use reth_payload_builder::{KeepPayloadJobAlive, PayloadId, PayloadJob, PayloadJobGenerator};
use reth_payload_builder_primitives::PayloadBuilderError;
use reth_payload_primitives::{BuiltPayload, PayloadBuilderAttributes, PayloadKind};
use reth_primitives::{proofs, SealedHeader};
use reth_primitives::{proofs, NodePrimitives, SealedHeader};
use reth_provider::{BlockReaderIdExt, CanonStateNotification, StateProviderFactory};
use reth_revm::cached::CachedReads;
use reth_tasks::TaskSpawner;
@ -191,7 +191,7 @@ where
Ok(job)
}
fn on_new_state(&mut self, new_state: CanonStateNotification) {
fn on_new_state<N: NodePrimitives>(&mut self, new_state: CanonStateNotification<N>) {
let mut cached = CachedReads::default();
// extract the state from the notification and put it into the cache