mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: relax on new head in validator (#13352)
This commit is contained in:
@ -16,6 +16,7 @@ reth-chainspec.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-engine-local.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits.workspace = true
|
||||
reth-payload-builder.workspace = true
|
||||
reth-payload-util.workspace = true
|
||||
reth-payload-validator.workspace = true
|
||||
@ -110,25 +111,26 @@ js-tracer = [
|
||||
"reth-node-builder/js-tracer"
|
||||
]
|
||||
test-utils = [
|
||||
"reth-tasks",
|
||||
"reth-e2e-test-utils",
|
||||
"alloy-genesis",
|
||||
"tokio",
|
||||
"reth-node-builder/test-utils",
|
||||
"reth-chainspec/test-utils",
|
||||
"reth-consensus/test-utils",
|
||||
"reth-evm/test-utils",
|
||||
"reth-network/test-utils",
|
||||
"reth-payload-builder/test-utils",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-revm/test-utils",
|
||||
"reth-db/test-utils",
|
||||
"reth-provider/test-utils",
|
||||
"reth-transaction-pool/test-utils",
|
||||
"reth-trie-db/test-utils",
|
||||
"revm/test-utils",
|
||||
"reth-optimism-node/test-utils",
|
||||
"reth-optimism-primitives/arbitrary",
|
||||
"reth-tasks",
|
||||
"reth-e2e-test-utils",
|
||||
"alloy-genesis",
|
||||
"tokio",
|
||||
"reth-node-builder/test-utils",
|
||||
"reth-chainspec/test-utils",
|
||||
"reth-consensus/test-utils",
|
||||
"reth-evm/test-utils",
|
||||
"reth-network/test-utils",
|
||||
"reth-payload-builder/test-utils",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-revm/test-utils",
|
||||
"reth-db/test-utils",
|
||||
"reth-provider/test-utils",
|
||||
"reth-transaction-pool/test-utils",
|
||||
"reth-trie-db/test-utils",
|
||||
"revm/test-utils",
|
||||
"reth-optimism-node/test-utils",
|
||||
"reth-optimism-primitives/arbitrary",
|
||||
"reth-primitives-traits/test-utils"
|
||||
]
|
||||
reth-codec = [
|
||||
"reth-primitives/reth-codec",
|
||||
|
||||
@ -222,7 +222,11 @@ where
|
||||
self.validate_all(transactions)
|
||||
}
|
||||
|
||||
fn on_new_head_block(&self, new_tip_block: &SealedBlock) {
|
||||
fn on_new_head_block<H, B>(&self, new_tip_block: &SealedBlock<H, B>)
|
||||
where
|
||||
H: reth_primitives_traits::BlockHeader,
|
||||
B: BlockBody,
|
||||
{
|
||||
self.inner.on_new_head_block(new_tip_block);
|
||||
self.update_l1_block_info(
|
||||
new_tip_block.header(),
|
||||
|
||||
Reference in New Issue
Block a user