chore: remove auto-seal consensus (#12385)

This commit is contained in:
Arsenii Kulikov
2024-11-08 01:29:49 +04:00
committed by GitHub
parent 29da7d744a
commit d19032fca1
18 changed files with 11 additions and 1388 deletions

View File

@ -2,7 +2,6 @@
use std::sync::Arc;
use reth_auto_seal_consensus::AutoSealConsensus;
use reth_basic_payload_builder::{BasicPayloadJobGenerator, BasicPayloadJobGeneratorConfig};
use reth_beacon_consensus::EthBeaconConsensus;
use reth_chainspec::ChainSpec;
@ -335,11 +334,7 @@ where
type Consensus = Arc<dyn reth_consensus::Consensus>;
async fn build_consensus(self, ctx: &BuilderContext<Node>) -> eyre::Result<Self::Consensus> {
if ctx.is_dev() {
Ok(Arc::new(AutoSealConsensus::new(ctx.chain_spec())))
} else {
Ok(Arc::new(EthBeaconConsensus::new(ctx.chain_spec())))
}
Ok(Arc::new(EthBeaconConsensus::new(ctx.chain_spec())))
}
}