repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/ethereum/payload/src/validator.rs
crates/ethereum/payload/src/validator.rs
//! Validates execution payload wrt Ethereum consensus rules use alloy_consensus::Block; use alloy_rpc_types_engine::{ExecutionData, PayloadError}; use reth_chainspec::EthereumHardforks; use reth_payload_validator::{cancun, prague, shanghai}; use reth_primitives_traits::{Block as _, SealedBlock, SignedTransaction}; us...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/build.rs
docs/vocs/docs/snippets/sources/exex/remote/build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_build::compile_protos("proto/exex.proto")?; Ok(()) }
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/lib.rs
docs/vocs/docs/snippets/sources/exex/remote/src/lib.rs
pub mod proto { tonic::include_proto!("exex"); }
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/exex_4.rs
docs/vocs/docs/snippets/sources/exex/remote/src/exex_4.rs
use futures_util::TryStreamExt; use remote_exex::proto::{ self, remote_ex_ex_server::{RemoteExEx, RemoteExExServer}, }; use reth::{builder::NodeTypes, primitives::EthPrimitives}; use reth_exex::{ExExContext, ExExEvent, ExExNotification}; use reth_node_api::FullNodeComponents; use reth_node_ethereum::EthereumNod...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/exex_1.rs
docs/vocs/docs/snippets/sources/exex/remote/src/exex_1.rs
use remote_exex::proto::{ self, remote_ex_ex_server::{RemoteExEx, RemoteExExServer}, }; use reth_node_ethereum::EthereumNode; use tokio::sync::mpsc; use tokio_stream::wrappers::ReceiverStream; use tonic::{transport::Server, Request, Response, Status}; struct ExExService {} #[tonic::async_trait] impl RemoteExE...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/exex_2.rs
docs/vocs/docs/snippets/sources/exex/remote/src/exex_2.rs
use remote_exex::proto::{ self, remote_ex_ex_server::{RemoteExEx, RemoteExExServer}, }; use reth_exex::ExExNotification; use reth_node_ethereum::EthereumNode; use std::sync::Arc; use tokio::sync::{broadcast, mpsc}; use tokio_stream::wrappers::ReceiverStream; use tonic::{transport::Server, Request, Response, Sta...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/consumer.rs
docs/vocs/docs/snippets/sources/exex/remote/src/consumer.rs
use remote_exex::proto::{remote_ex_ex_client::RemoteExExClient, SubscribeRequest}; use reth_exex::ExExNotification; use reth_tracing::{tracing::info, RethTracer, Tracer}; #[tokio::main] async fn main() -> eyre::Result<()> { let _ = RethTracer::new().init()?; let mut client = RemoteExExClient::connect("http://...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/exex.rs
docs/vocs/docs/snippets/sources/exex/remote/src/exex.rs
use futures_util::TryStreamExt; use remote_exex::proto::{ self, remote_ex_ex_server::{RemoteExEx, RemoteExExServer}, }; use reth::{builder::NodeTypes, primitives::EthPrimitives}; use reth_exex::{ExExContext, ExExEvent, ExExNotification}; use reth_node_api::FullNodeComponents; use reth_node_ethereum::EthereumNod...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/remote/src/exex_3.rs
docs/vocs/docs/snippets/sources/exex/remote/src/exex_3.rs
use remote_exex::proto::{ self, remote_ex_ex_server::{RemoteExEx, RemoteExExServer}, }; use reth_exex::ExExNotification; use reth_node_ethereum::EthereumNode; use reth_tracing::tracing::info; use std::sync::Arc; use tokio::sync::{broadcast, mpsc}; use tokio_stream::wrappers::ReceiverStream; use tonic::{transpor...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/tracking-state/src/bin/1.rs
docs/vocs/docs/snippets/sources/exex/tracking-state/src/bin/1.rs
use std::{ future::Future, pin::Pin, task::{ready, Context, Poll}, }; use futures_util::{FutureExt, TryStreamExt}; use reth::{api::FullNodeComponents, builder::NodeTypes, primitives::EthPrimitives}; use reth_exex::{ExExContext, ExExEvent, ExExNotification}; use reth_node_ethereum::EthereumNode; use reth_tr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/tracking-state/src/bin/2.rs
docs/vocs/docs/snippets/sources/exex/tracking-state/src/bin/2.rs
use std::{ future::Future, pin::Pin, task::{ready, Context, Poll}, }; use alloy_primitives::BlockNumber; use futures_util::{FutureExt, TryStreamExt}; use reth::{ api::{BlockBody, FullNodeComponents}, builder::NodeTypes, primitives::EthPrimitives, }; use reth_exex::{ExExContext, ExExEvent}; use ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/1.rs
docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/1.rs
use reth_node_ethereum::EthereumNode; fn main() -> eyre::Result<()> { reth::cli::Cli::parse_args().run(async move |builder, _| { let handle = builder.node(EthereumNode::default()).launch().await?; handle.wait_for_node_exit().await }) }
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/2.rs
docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/2.rs
use reth::api::FullNodeComponents; use reth_exex::ExExContext; use reth_node_ethereum::EthereumNode; async fn my_exex<Node: FullNodeComponents>(mut _ctx: ExExContext<Node>) -> eyre::Result<()> { #[expect(clippy::empty_loop)] loop {} } fn main() -> eyre::Result<()> { reth::cli::Cli::parse_args().run(async ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/3.rs
docs/vocs/docs/snippets/sources/exex/hello-world/src/bin/3.rs
use futures_util::TryStreamExt; use reth::{api::FullNodeComponents, builder::NodeTypes, primitives::EthPrimitives}; use reth_exex::{ExExContext, ExExEvent, ExExNotification}; use reth_node_ethereum::EthereumNode; use reth_tracing::tracing::info; async fn my_exex<Node: FullNodeComponents<Types: NodeTypes<Primitives = E...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/docs/cli/help.rs
docs/cli/help.rs
#!/usr/bin/env -S cargo +nightly -Zscript --- [package] edition = "2021" [dependencies] clap = { version = "4", features = ["derive"] } regex = "1" --- use clap::Parser; use regex::Regex; use std::{ borrow::Cow, fmt, fs, io, iter::once, path::{Path, PathBuf}, process::{Command, Stdio}, str, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node-components/src/main.rs
examples/custom-node-components/src/main.rs
//! This example shows how to configure custom components for a reth node. #![warn(unused_crate_dependencies)] use reth_ethereum::{ chainspec::ChainSpec, cli::interface::Cli, node::{ api::{FullNodeTypes, NodeTypes}, builder::{components::PoolBuilder, BuilderContext}, node::Ethereum...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/node-builder-api/src/main.rs
examples/node-builder-api/src/main.rs
//! This example showcases various Nodebuilder use cases use reth_ethereum::{ cli::interface::Cli, node::{builder::components::NoopNetworkBuilder, node::EthereumAddOns, EthereumNode}, }; /// Maps the ethereum node's network component to the noop implementation. /// /// This installs the [`NoopNetworkBuilder`]...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/full-contract-state/src/main.rs
examples/full-contract-state/src/main.rs
//! Example demonstrating how to extract the full state of a specific contract from the reth //! database. //! //! This example shows how to: //! 1. Connect to a reth database //! 2. Get basic account information (balance, nonce, code hash) //! 3. Get contract bytecode //! 4. Iterate through all storage slots for the c...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/polygon-p2p/src/chain_cfg.rs
examples/polygon-p2p/src/chain_cfg.rs
use alloy_genesis::Genesis; use reth_discv4::NodeRecord; use reth_ethereum::chainspec::{ChainSpec, Head}; use std::sync::Arc; const SHANGHAI_BLOCK: u64 = 50523000; pub(crate) fn polygon_chain_spec() -> Arc<ChainSpec> { let genesis: Genesis = serde_json::from_str(include_str!("./genesis.json")).expect("de...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/polygon-p2p/src/main.rs
examples/polygon-p2p/src/main.rs
//! Example for how hook into the polygon p2p network //! //! Run with //! //! ```sh //! cargo run -p polygon-p2p //! ``` //! //! This launches a regular reth node overriding the engine api payload builder with our custom. //! //! Credits to: <https://merkle.io/blog/modifying-reth-to-build-the-fastest-transaction-netwo...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/network-txpool/src/main.rs
examples/network-txpool/src/main.rs
//! Example of how to use the network as a standalone component together with a transaction pool and //! a custom pool validator. //! //! Run with //! //! ```sh //! cargo run --release -p network-txpool -- node //! ``` #![warn(unused_crate_dependencies)] use reth_ethereum::{ network::{config::rng_secret_key, EthN...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/engine.rs
examples/custom-node/src/engine.rs
use crate::{ chainspec::CustomChainSpec, evm::CustomEvmConfig, primitives::{CustomHeader, CustomNodePrimitives, CustomTransaction}, CustomNode, }; use alloy_eips::eip2718::WithEncoded; use op_alloy_rpc_types_engine::{OpExecutionData, OpExecutionPayload}; use reth_chain_state::ExecutedBlockWithTrieUpdate...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/lib.rs
examples/custom-node/src/lib.rs
//! This example shows how implement a custom node. //! //! A node consists of: //! - primitives: block,header,transactions //! - components: network,pool,evm //! - engine: advances the node #![cfg_attr(not(test), warn(unused_crate_dependencies))] use crate::{ engine::{CustomEngineValidatorBuilder, CustomPayloadT...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/rpc.rs
examples/custom-node/src/rpc.rs
use crate::{ evm::CustomTxEnv, primitives::{CustomHeader, CustomTransaction}, }; use alloy_consensus::error::ValueError; use alloy_network::TxSigner; use op_alloy_consensus::OpTxEnvelope; use op_alloy_rpc_types::{OpTransactionReceipt, OpTransactionRequest}; use reth_op::rpc::RpcTypes; use reth_rpc_api::eth::{ ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/chainspec.rs
examples/custom-node/src/chainspec.rs
use crate::primitives::CustomHeader; use alloy_genesis::Genesis; use reth_ethereum::{ chainspec::{EthChainSpec, EthereumHardforks, Hardfork, Hardforks}, primitives::SealedHeader, }; use reth_network_peers::NodeRecord; use reth_op::chainspec::OpChainSpec; use reth_optimism_forks::OpHardforks; #[derive(Debug, Cl...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/pool.rs
examples/custom-node/src/pool.rs
use crate::primitives::{CustomTransaction, TxPayment}; use alloy_consensus::{ crypto::RecoveryError, error::ValueError, transaction::SignerRecoverable, Signed, TransactionEnvelope, }; use alloy_primitives::{Address, Sealed, B256}; use op_alloy_consensus::{OpPooledTransaction, OpTransaction, TxDeposit}; use reth...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/engine_api.rs
examples/custom-node/src/engine_api.rs
use crate::{ engine::{CustomExecutionData, CustomPayloadAttributes, CustomPayloadTypes}, primitives::CustomNodePrimitives, CustomNode, }; use alloy_rpc_types_engine::{ ExecutionPayloadV3, ForkchoiceState, ForkchoiceUpdated, PayloadId, PayloadStatus, }; use async_trait::async_trait; use jsonrpsee::{core:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/config.rs
examples/custom-node/src/evm/config.rs
use crate::{ chainspec::CustomChainSpec, engine::{CustomExecutionData, CustomPayloadBuilderAttributes}, evm::{alloy::CustomEvmFactory, executor::CustomBlockExecutionCtx, CustomBlockAssembler}, primitives::{Block, CustomHeader, CustomNodePrimitives, CustomTransaction}, }; use alloy_consensus::BlockHeader...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/assembler.rs
examples/custom-node/src/evm/assembler.rs
use crate::{ chainspec::CustomChainSpec, evm::executor::CustomBlockExecutionCtx, primitives::{Block, CustomHeader, CustomTransaction}, }; use alloy_evm::block::{BlockExecutionError, BlockExecutorFactory}; use reth_ethereum::{ evm::primitives::execute::{BlockAssembler, BlockAssemblerInput}, primitive...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/builder.rs
examples/custom-node/src/evm/builder.rs
use crate::{chainspec::CustomChainSpec, evm::CustomEvmConfig, primitives::CustomNodePrimitives}; use reth_ethereum::node::api::FullNodeTypes; use reth_node_builder::{components::ExecutorBuilder, BuilderContext, NodeTypes}; use std::{future, future::Future}; #[derive(Debug, Clone, Default)] #[non_exhaustive] pub struct...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/alloy.rs
examples/custom-node/src/evm/alloy.rs
use crate::evm::{CustomTxEnv, PaymentTxEnv}; use alloy_evm::{precompiles::PrecompilesMap, Database, Evm, EvmEnv, EvmFactory}; use alloy_op_evm::{OpEvm, OpEvmFactory}; use alloy_primitives::{Address, Bytes}; use op_revm::{ precompiles::OpPrecompiles, L1BlockInfo, OpContext, OpHaltReason, OpSpecId, OpTransaction, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/env.rs
examples/custom-node/src/evm/env.rs
use crate::primitives::{CustomTransaction, TxPayment}; use alloy_eips::{eip2930::AccessList, Typed2718}; use alloy_evm::{FromRecoveredTx, FromTxWithEncoded, IntoTxEnv}; use alloy_primitives::{Address, Bytes, TxKind, B256, U256}; use op_alloy_consensus::OpTxEnvelope; use op_revm::OpTransaction; use reth_ethereum::evm::{...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/executor.rs
examples/custom-node/src/evm/executor.rs
use crate::{ evm::{ alloy::{CustomEvm, CustomEvmFactory}, CustomEvmConfig, CustomTxEnv, }, primitives::CustomTransaction, }; use alloy_consensus::transaction::Recovered; use alloy_evm::{ block::{ BlockExecutionError, BlockExecutionResult, BlockExecutor, BlockExecutorFactory, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/evm/mod.rs
examples/custom-node/src/evm/mod.rs
mod alloy; mod assembler; mod builder; mod config; mod env; mod executor; pub use alloy::{CustomContext, CustomEvm}; pub use assembler::CustomBlockAssembler; pub use builder::CustomExecutorBuilder; pub use config::CustomEvmConfig; pub use env::{CustomTxEnv, PaymentTxEnv}; pub use executor::CustomBlockExecutor;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/tx.rs
examples/custom-node/src/primitives/tx.rs
use super::TxPayment; use alloy_consensus::{ crypto::RecoveryError, transaction::SignerRecoverable, Signed, TransactionEnvelope, }; use alloy_eips::Encodable2718; use alloy_primitives::{Sealed, Signature, B256}; use alloy_rlp::BufMut; use op_alloy_consensus::{OpTxEnvelope, TxDeposit}; use reth_codecs::{ alloy::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/block.rs
examples/custom-node/src/primitives/block.rs
use crate::primitives::{CustomHeader, CustomTransaction}; /// The Block type of this node pub type Block = alloy_consensus::Block<CustomTransaction, CustomHeader>; /// The body type of this node pub type BlockBody = alloy_consensus::BlockBody<CustomTransaction, CustomHeader>;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/header.rs
examples/custom-node/src/primitives/header.rs
use alloy_consensus::Header; use alloy_primitives::{Address, BlockNumber, Bloom, Bytes, Sealable, B256, B64, U256}; use alloy_rlp::{Encodable, RlpDecodable, RlpEncodable}; use reth_codecs::Compact; use reth_ethereum::primitives::{serde_bincode_compat::RlpBincode, BlockHeader, InMemorySize}; use revm_primitives::keccak2...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/tx_custom.rs
examples/custom-node/src/primitives/tx_custom.rs
use crate::primitives::PAYMENT_TX_TYPE_ID; use alloy_consensus::{ transaction::{RlpEcdsaDecodableTx, RlpEcdsaEncodableTx}, SignableTransaction, Transaction, }; use alloy_eips::{eip2930::AccessList, eip7702::SignedAuthorization, Typed2718}; use alloy_primitives::{Address, Bytes, ChainId, Signature, TxKind, B256,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/mod.rs
examples/custom-node/src/primitives/mod.rs
//! Contains the primitive types of this node. pub mod header; pub use header::*; pub mod block; pub use block::*; pub mod tx; pub use tx::*; pub mod tx_type; pub use tx_type::*; pub mod tx_custom; pub use tx_custom::*; use reth_ethereum::primitives::NodePrimitives; use reth_op::OpReceipt; #[derive(Debug, Clone, De...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-node/src/primitives/tx_type.rs
examples/custom-node/src/primitives/tx_type.rs
use crate::primitives::TxTypeCustom; use alloy_primitives::bytes::{Buf, BufMut}; use reth_codecs::{txtype::COMPACT_EXTENDED_IDENTIFIER_FLAG, Compact}; pub const PAYMENT_TX_TYPE_ID: u8 = 42; impl Compact for TxTypeCustom { fn to_compact<B>(&self, buf: &mut B) -> usize where B: BufMut + AsMut<[u8]>, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/lib.rs
examples/bsc-p2p/src/lib.rs
pub mod block_import; pub mod chainspec; pub mod handshake; pub mod upgrade_status;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/upgrade_status.rs
examples/bsc-p2p/src/upgrade_status.rs
//! Implement BSC upgrade message which is required during handshake with other BSC clients, e.g., //! geth. use alloy_rlp::{Decodable, Encodable, RlpDecodable, RlpEncodable}; use bytes::{Buf, BufMut, Bytes, BytesMut}; /// The message id for the upgrade status message, used in the BSC handshake. const UPGRADE_STATUS_M...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/handshake.rs
examples/bsc-p2p/src/handshake.rs
use crate::upgrade_status::{UpgradeStatus, UpgradeStatusExtension}; use alloy_rlp::Decodable; use futures::SinkExt; use reth_eth_wire::{ errors::{EthHandshakeError, EthStreamError}, handshake::{EthRlpxHandshake, EthereumEthHandshake, UnauthEth}, UnifiedStatus, }; use reth_eth_wire_types::{DisconnectReason, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/chainspec.rs
examples/bsc-p2p/src/chainspec.rs
//! Chain specification for BSC, credits to: <https://github.com/bnb-chain/reth/blob/main/crates/bsc/chainspec/src/bsc.rs> use alloy_primitives::{BlockHash, U256}; use reth_chainspec::{ hardfork, make_genesis_header, BaseFeeParams, BaseFeeParamsKind, Chain, ChainHardforks, ChainSpec, EthereumHardfork, ForkCond...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/main.rs
examples/bsc-p2p/src/main.rs
//! Example for how to hook into the bsc p2p network //! //! Run with //! //! ```sh //! cargo run -p bsc-p2p //! ``` //! //! This launches a regular reth node overriding the engine api payload builder with our custom. //! //! Credits to: <https://merkle.io/blog/modifying-reth-to-build-the-fastest-transaction-network-on...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/block_import/parlia.rs
examples/bsc-p2p/src/block_import/parlia.rs
use alloy_primitives::{BlockNumber, B256}; use reth_provider::{BlockNumReader, ProviderError}; use std::cmp::Ordering; /// Errors that can occur in Parlia consensus #[derive(Debug, thiserror::Error)] pub enum ParliaConsensusErr { /// Error from the provider #[error(transparent)] Provider(#[from] ProviderEr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/block_import/service.rs
examples/bsc-p2p/src/block_import/service.rs
use super::handle::ImportHandle; use crate::block_import::parlia::{ParliaConsensus, ParliaConsensusErr}; use alloy_rpc_types::engine::{ForkchoiceState, PayloadStatusEnum}; use futures::{future::Either, stream::FuturesUnordered, StreamExt}; use reth_engine_primitives::{ConsensusEngineHandle, EngineTypes}; use reth_eth_w...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/block_import/mod.rs
examples/bsc-p2p/src/block_import/mod.rs
#![allow(unused)] use handle::ImportHandle; use reth_engine_primitives::EngineTypes; use reth_eth_wire::NewBlock; use reth_network::import::{BlockImport, BlockImportOutcome, NewBlockEvent}; use reth_network_peers::PeerId; use reth_payload_primitives::{BuiltPayload, PayloadTypes}; use reth_primitives::NodePrimitives; us...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/src/block_import/handle.rs
examples/bsc-p2p/src/block_import/handle.rs
use std::task::{Context, Poll}; use reth_engine_primitives::EngineTypes; use reth_network::import::BlockImportError; use reth_network_api::PeerId; use reth_payload_primitives::PayloadTypes; use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender}; use super::service::{BlockMsg, ImportEvent, IncomingBlock, Outcome}...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/tests/it/p2p.rs
examples/bsc-p2p/tests/it/p2p.rs
use example_bsc_p2p::{ chainspec::{boot_nodes, bsc_chain_spec, head}, handshake::BscHandshake, }; use reth_chainspec::NamedChain; use reth_discv4::Discv4ConfigBuilder; use reth_network::{ EthNetworkPrimitives, NetworkConfig, NetworkEvent, NetworkEventListenerProvider, NetworkManager, }; use reth_provider::n...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/bsc-p2p/tests/it/main.rs
examples/bsc-p2p/tests/it/main.rs
#![allow(missing_docs)] mod p2p; const fn main() {}
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-inspector/src/main.rs
examples/custom-inspector/src/main.rs
//! Example of how to use a custom inspector to trace new pending transactions //! //! Run with //! //! ```sh //! cargo run --release -p custom-inspector -- node --http --ws --recipients 0x....,0x.... //! ``` //! //! If no recipients are specified, all transactions will be inspected. #![warn(unused_crate_dependencies)...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/rpc-db/src/myrpc_ext.rs
examples/rpc-db/src/myrpc_ext.rs
// Reth block related imports use reth_ethereum::{provider::BlockReaderIdExt, rpc::eth::EthResult, Block}; // Rpc related imports use jsonrpsee::proc_macros::rpc; /// trait interface for a custom rpc namespace: `myrpcExt` /// /// This defines an additional namespace where all methods are configured as trait functions...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/rpc-db/src/main.rs
examples/rpc-db/src/main.rs
//! Example illustrating how to run the ETH JSON RPC API as standalone over a DB file. //! //! Run with //! //! ```sh //! cargo run -p rpc-db //! ``` //! //! This installs an additional RPC method `myrpcExt_customMethod` that can be queried via [cast](https://github.com/foundry-rs/foundry) //! //! ```sh //! cast rpc my...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/manual-p2p/src/main.rs
examples/manual-p2p/src/main.rs
//! Low level example of connecting to and communicating with a peer. //! //! Run with //! //! ```sh //! cargo run -p manual-p2p //! ``` #![warn(unused_crate_dependencies)] use std::time::Duration; use alloy_consensus::constants::MAINNET_GENESIS_HASH; use futures::StreamExt; use reth_discv4::{DiscoveryUpdate, Discv4...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/exex-subscription/src/main.rs
examples/exex-subscription/src/main.rs
#![allow(dead_code)] //! An ExEx example that installs a new RPC subscription endpoint that emit storage changes for a //! requested address. #[allow(dead_code)] use alloy_primitives::{Address, U256}; use clap::Parser; use futures::TryStreamExt; use jsonrpsee::{ core::SubscriptionResult, proc_macros::rpc, tracing,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/network-proxy/src/main.rs
examples/network-proxy/src/main.rs
//! Example of how to use the network with a proxy for eth requests handling. //! //! This connects two peers: //! - first peer installs a channel for incoming eth request //! - second peer connects to first peer and sends a header request //! //! Run with //! //! ```sh //! cargo run --release -p example-network-prox...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/exex-hello-world/src/main.rs
examples/exex-hello-world/src/main.rs
//! Example for a simple Execution Extension //! //! Run with //! //! ```sh //! cargo run -p example-exex-hello-world -- node --dev --dev.block-time 5s //! ``` use clap::Parser; use futures::TryStreamExt; use reth_ethereum::{ chainspec::EthereumHardforks, exex::{ExExContext, ExExEvent, ExExNotification}, n...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/db-access/src/main.rs
examples/db-access/src/main.rs
#![warn(unused_crate_dependencies)] use alloy_primitives::{Address, B256}; use reth_ethereum::{ chainspec::ChainSpecBuilder, node::EthereumNode, primitives::{AlloyBlockHeader, SealedBlock, SealedHeader}, provider::{ providers::ReadOnlyConfig, AccountReader, BlockReader, BlockSource, HeaderProvi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-payload-builder/src/generator.rs
examples/custom-payload-builder/src/generator.rs
use crate::job::EmptyBlockPayloadJob; use alloy_eips::BlockNumberOrTag; use reth_basic_payload_builder::{ BasicPayloadJobGeneratorConfig, HeaderForPayload, PayloadBuilder, PayloadConfig, }; use reth_ethereum::{ node::api::{Block, PayloadBuilderAttributes}, primitives::SealedHeader, provider::{BlockReade...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-payload-builder/src/main.rs
examples/custom-payload-builder/src/main.rs
//! Example for how hook into the node via the CLI extension mechanism without registering //! additional arguments //! //! Run with //! //! ```sh //! cargo run -p custom-payload-builder -- node //! ``` //! //! This launches a regular reth node overriding the engine api payload builder with our custom. #![warn(unused_...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-payload-builder/src/job.rs
examples/custom-payload-builder/src/job.rs
use futures_util::Future; use reth_basic_payload_builder::{HeaderForPayload, PayloadBuilder, PayloadConfig}; use reth_ethereum::{ node::api::{PayloadBuilderAttributes, PayloadKind}, tasks::TaskSpawner, }; use reth_payload_builder::{KeepPayloadJobAlive, PayloadBuilderError, PayloadJob}; use std::{ pin::Pin,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-engine-types/src/main.rs
examples/custom-engine-types/src/main.rs
//! This example shows how to implement a custom [EngineTypes]. //! //! The [EngineTypes] trait can be implemented to configure the engine to work with custom types, //! as long as those types implement certain traits. //! //! Custom payload attributes can be supported by implementing two main traits: //! //! [PayloadA...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/main.rs
examples/custom-rlpx-subprotocol/src/main.rs
//! Example for how to customize the network layer by adding a custom rlpx subprotocol. //! //! Run with //! //! ```sh //! cargo run -p example-custom-rlpx-subprotocol -- node //! ``` //! //! This launches a regular reth node with a custom rlpx subprotocol. #![warn(unused_crate_dependencies)] mod subprotocol; use st...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/mod.rs
examples/custom-rlpx-subprotocol/src/subprotocol/mod.rs
pub(crate) mod connection; pub(crate) mod protocol;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/connection/mod.rs
examples/custom-rlpx-subprotocol/src/subprotocol/connection/mod.rs
use super::protocol::proto::{CustomRlpxProtoMessage, CustomRlpxProtoMessageKind}; use alloy_primitives::bytes::BytesMut; use futures::{Stream, StreamExt}; use reth_ethereum::network::eth_wire::multiplex::ProtocolConnection; use std::{ pin::Pin, task::{ready, Context, Poll}, }; use tokio::sync::oneshot; use toki...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/connection/handler.rs
examples/custom-rlpx-subprotocol/src/subprotocol/connection/handler.rs
use super::CustomRlpxConnection; use crate::subprotocol::protocol::{ event::ProtocolEvent, handler::ProtocolState, proto::CustomRlpxProtoMessage, }; use reth_ethereum::network::{ api::{Direction, PeerId}, eth_wire::{capability::SharedCapabilities, multiplex::ProtocolConnection, protocol::Protocol}, prot...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/protocol/event.rs
examples/custom-rlpx-subprotocol/src/subprotocol/protocol/event.rs
use crate::subprotocol::connection::CustomCommand; use reth_ethereum::network::{api::PeerId, Direction}; use tokio::sync::mpsc; /// The events that can be emitted by our custom protocol. #[derive(Debug)] pub(crate) enum ProtocolEvent { Established { #[expect(dead_code)] direction: Direction, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/protocol/mod.rs
examples/custom-rlpx-subprotocol/src/subprotocol/protocol/mod.rs
pub(crate) mod event; pub(crate) mod handler; pub(crate) mod proto;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/protocol/handler.rs
examples/custom-rlpx-subprotocol/src/subprotocol/protocol/handler.rs
use super::event::ProtocolEvent; use crate::subprotocol::connection::handler::CustomRlpxConnectionHandler; use reth_ethereum::network::{api::PeerId, protocol::ProtocolHandler}; use std::net::SocketAddr; use tokio::sync::mpsc; /// Protocol state is an helper struct to store the protocol events. #[derive(Clone, Debug)] ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-rlpx-subprotocol/src/subprotocol/protocol/proto.rs
examples/custom-rlpx-subprotocol/src/subprotocol/protocol/proto.rs
//! Simple RLPx Ping Pong protocol that also support sending messages, //! following [RLPx specs](https://github.com/ethereum/devp2p/blob/master/rlpx.md) use alloy_primitives::bytes::{Buf, BufMut, BytesMut}; use reth_ethereum::network::eth_wire::{protocol::Protocol, Capability}; #[repr(u8)] #[derive(Clone, Copy, Debu...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/beacon-api-sidecar-fetcher/src/mined_sidecar.rs
examples/beacon-api-sidecar-fetcher/src/mined_sidecar.rs
use crate::BeaconSidecarConfig; use alloy_consensus::{BlockHeader, Signed, Transaction as _, TxEip4844WithSidecar, Typed2718}; use alloy_eips::eip7594::BlobTransactionSidecarVariant; use alloy_primitives::B256; use alloy_rpc_types_beacon::sidecar::{BeaconBlobBundle, SidecarIterator}; use eyre::Result; use futures_util:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/beacon-api-sidecar-fetcher/src/main.rs
examples/beacon-api-sidecar-fetcher/src/main.rs
//! Run with //! //! ```sh //! cargo run -p example-beacon-api-sidecar-fetcher -- node --full //! ``` //! //! This launches a regular reth instance and subscribes to payload attributes event stream. //! //! **NOTE**: This expects that the CL client is running an http server on `localhost:5052` and is //! configured to ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/node-custom-rpc/src/main.rs
examples/node-custom-rpc/src/main.rs
//! Example of how to use additional rpc namespaces in the reth CLI //! //! Run with //! //! ```sh //! cargo run -p node-custom-rpc -- node --http --ws --enable-ext //! ``` //! //! This installs an additional RPC method `txpoolExt_transactionCount` that can be queried via [cast](https://github.com/foundry-rs/foundry) /...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-evm/src/main.rs
examples/custom-evm/src/main.rs
//! This example shows how to implement a node with a custom EVM #![warn(unused_crate_dependencies)] use alloy_evm::{ eth::EthEvmContext, precompiles::PrecompilesMap, revm::{ handler::EthPrecompiles, precompile::{Precompile, PrecompileId}, }, EvmFactory, }; use alloy_genesis::Genes...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/op-db-access/src/main.rs
examples/op-db-access/src/main.rs
//! Shows how manually access the database use reth_op::{chainspec::BASE_MAINNET, node::OpNode, provider::providers::ReadOnlyConfig}; // Providers are zero cost abstractions on top of an opened MDBX Transaction // exposing a familiar API to query the chain's information without requiring knowledge // of the inner tab...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/precompile-cache/src/main.rs
examples/precompile-cache/src/main.rs
//! This example shows how to implement a node with a custom EVM that uses a stateful precompile #![warn(unused_crate_dependencies)] use alloy_evm::{ eth::EthEvmContext, precompiles::{DynPrecompile, Precompile, PrecompileInput, PrecompilesMap}, revm::{handler::EthPrecompiles, precompile::PrecompileId}, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/exex-test/src/wal_test.rs
examples/exex-test/src/wal_test.rs
use eyre::Result; use futures_util::StreamExt; use reth_ethereum::{ exex::{ExExContext, ExExEvent}, node::api::{FullNodeComponents, NodeTypes}, EthPrimitives, }; use std::sync::{ atomic::{AtomicBool, Ordering}, Arc, }; /// ExEx tests - WAL behavior #[expect(dead_code)] pub async fn wal_test_exex< ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/exex-test/src/main.rs
examples/exex-test/src/main.rs
use futures_util::StreamExt; use reth_e2e_test_utils::testsuite::{ actions::ProduceBlocks, setup::{NetworkSetup, Setup}, TestBuilder, }; use reth_ethereum::{ chainspec::{ChainSpecBuilder, MAINNET}, exex::{ExExContext, ExExEvent}, node::{ api::{FullNodeComponents, NodeTypes}, EthE...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/network/src/main.rs
examples/network/src/main.rs
//! Example of how to use the network as a standalone component //! //! Run with //! //! ```sh //! cargo run --release -p network //! ``` #![warn(unused_crate_dependencies)] use futures::StreamExt; use reth_ethereum::{ network::{ config::rng_secret_key, NetworkConfig, NetworkEventListenerProvider, Network...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-beacon-withdrawals/src/main.rs
examples/custom-beacon-withdrawals/src/main.rs
//! Example for how to modify a block post-execution step. It credits beacon withdrawals with a //! custom mechanism instead of minting native tokens #![warn(unused_crate_dependencies)] use alloy_eips::eip4895::Withdrawal; use alloy_evm::{ block::{BlockExecutorFactory, BlockExecutorFor, CommitChanges, ExecutableT...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/engine-api-access/src/main.rs
examples/engine-api-access/src/main.rs
//! Example demonstrating how to access the Engine API instance during construction. //! //! Run with //! //! ```sh //! cargo run -p example-engine-api-access //! ``` use reth_db::test_utils::create_test_rw_db; use reth_node_builder::{EngineApiExt, FullNodeComponents, NodeBuilder, NodeConfig}; use reth_optimism_chains...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/beacon-api-sse/src/main.rs
examples/beacon-api-sse/src/main.rs
//! Example of how to subscribe to beacon chain events via SSE. //! //! See also [ethereum-beacon-API eventstream](https://ethereum.github.io/beacon-APIs/#/Events/eventstream) //! //! Run with //! //! ```sh //! cargo run -p example-beacon-api-sse -- node //! ``` //! //! This launches a regular reth instance and subscri...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/custom-dev-node/src/main.rs
examples/custom-dev-node/src/main.rs
//! This example shows how to run a custom dev node programmatically and submit a transaction //! through rpc. #![warn(unused_crate_dependencies)] use std::sync::Arc; use alloy_genesis::Genesis; use alloy_primitives::{b256, hex}; use futures_util::StreamExt; use reth_ethereum::{ chainspec::ChainSpec, node::{...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/node-event-hooks/src/main.rs
examples/node-event-hooks/src/main.rs
//! Example for how hook into the node via the CLI extension mechanism without registering //! additional arguments //! //! Run with //! //! ```sh //! cargo run -p node-event-hooks -- node //! ``` //! //! This launches a regular reth node and also print: //! > "All components initialized" – once all components have bee...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/txpool-tracing/src/submit.rs
examples/txpool-tracing/src/submit.rs
//! Transaction submission functionality for the txpool tracing example #![allow(unused)] #![allow(clippy::too_many_arguments)] use alloy_network::{Ethereum, EthereumWallet, NetworkWallet, TransactionBuilder}; use alloy_primitives::{Address, TxHash, U256}; use futures_util::StreamExt; use reth_ethereum::{ node::ap...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/examples/txpool-tracing/src/main.rs
examples/txpool-tracing/src/main.rs
//! Example of how to trace new pending transactions in the reth CLI //! //! Run with //! //! ```sh //! cargo run --release -p txpool-tracing -- node --http --ws --recipients 0x....,0x.... //! ``` //! //! If no recipients are specified, all transactions will be traced. #![warn(unused_crate_dependencies)] use alloy_pr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/assert.rs
testing/ef-tests/src/assert.rs
//! Various assertion helpers. use crate::Error; use std::fmt::Debug; /// A helper like `assert_eq!` that instead returns `Err(Error::Assertion)` on failure. pub fn assert_equal<T>(left: T, right: T, msg: &str) -> Result<(), Error> where T: PartialEq + Debug, { if left == right { Ok(()) } else { ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/case.rs
testing/ef-tests/src/case.rs
//! Test case definitions use crate::result::{CaseResult, Error}; use rayon::iter::{IntoParallelRefIterator, ParallelIterator}; use std::{ fmt::Debug, path::{Path, PathBuf}, }; /// A single test case, capable of loading a JSON description of itself and running it. /// /// See <https://ethereum-tests.readthedo...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/lib.rs
testing/ef-tests/src/lib.rs
//! Abstractions and runners for EF tests. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issues/" ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/suite.rs
testing/ef-tests/src/suite.rs
//! Abstractions for groups of tests. use crate::{ case::{Case, Cases}, result::assert_tests_pass, }; use std::path::{Path, PathBuf}; use walkdir::{DirEntry, WalkDir}; /// A collection of tests. pub trait Suite { /// The type of test cases in this suite. type Case: Case; /// The path to the test ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/result.rs
testing/ef-tests/src/result.rs
//! Test results and errors use crate::Case; use reth_db::DatabaseError; use reth_provider::ProviderError; use std::path::{Path, PathBuf}; use thiserror::Error; /// Test errors /// /// # Note /// /// `Error::Skipped` should not be treated as a test failure. #[derive(Debug, Error)] #[non_exhaustive] pub enum Error { ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/models.rs
testing/ef-tests/src/models.rs
//! Shared models for <https://github.com/ethereum/tests> use crate::{assert::assert_equal, Error}; use alloy_consensus::Header as RethHeader; use alloy_eips::eip4895::Withdrawals; use alloy_primitives::{keccak256, Address, Bloom, Bytes, B256, B64, U256}; use reth_chainspec::{ChainSpec, ChainSpecBuilder, EthereumHardf...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/cases/blockchain_test.rs
testing/ef-tests/src/cases/blockchain_test.rs
//! Test runners for `BlockchainTests` in <https://github.com/ethereum/tests> use crate::{ models::{BlockchainTest, ForkSpec}, Case, Error, Suite, }; use alloy_rlp::{Decodable, Encodable}; use rayon::iter::{ParallelBridge, ParallelIterator}; use reth_chainspec::ChainSpec; use reth_consensus::{Consensus, Header...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/src/cases/mod.rs
testing/ef-tests/src/cases/mod.rs
//! Specific test case handler implementations. pub mod blockchain_test;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/ef-tests/tests/tests.rs
testing/ef-tests/tests/tests.rs
#![allow(missing_docs)] #![cfg(feature = "ef-tests")] use ef_tests::{cases::blockchain_test::BlockchainTests, suite::Suite}; use std::path::PathBuf; macro_rules! general_state_test { ($test_name:ident, $dir:ident) => { #[test] fn $test_name() { reth_tracing::init_test_tracing(); ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/testing-utils/src/genesis_allocator.rs
testing/testing-utils/src/genesis_allocator.rs
//! Helps create a custom genesis alloc by making it easy to add funded accounts with known //! signers to the genesis block. use alloy_primitives::{Address, Bytes, B256, U256}; use reth_primitives_traits::crypto::secp256k1::public_key_to_address; use secp256k1::{ rand::{thread_rng, RngCore}, Keypair, Secp256k...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/testing-utils/src/lib.rs
testing/testing-utils/src/lib.rs
//! Testing utilities. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issues/" )] #![cfg_attr(docsr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/testing-utils/src/generators.rs
testing/testing-utils/src/generators.rs
//! Generators for different data structures like block headers, block bodies and ranges of those. // TODO(rand): update ::random calls after rand_09 migration use alloy_consensus::{Header, SignableTransaction, Transaction as _, TxLegacy}; use alloy_eips::{ eip1898::BlockWithParent, eip4895::{Withdrawal, With...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/testing/runner/src/main.rs
testing/runner/src/main.rs
//! Command-line interface for running tests. use std::path::PathBuf; use clap::Parser; use ef_tests::{cases::blockchain_test::BlockchainTests, Suite}; /// Command-line arguments for the test runner. #[derive(Debug, Parser)] pub struct TestRunnerCommand { /// Path to the test suite suite_path: PathBuf, } fn ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false