Module noop

Module noop 

Source
Expand description

A consensus implementation that does nothing. A consensus implementation that does nothing.

This module provides NoopConsensus, a consensus implementation that performs no validation and always returns Ok(()) for all validation methods. Useful for testing and scenarios where consensus validation is not required.

§Examples

use reth_consensus::noop::NoopConsensus;
use std::sync::Arc;

let consensus = NoopConsensus::default();
let consensus_arc = NoopConsensus::arc();

§Warning

Not for production use - provides no security guarantees or consensus validation.

Structs§

NoopConsensus
A Consensus implementation that does nothing.