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/cli/util/src/lib.rs
crates/cli/util/src/lib.rs
//! This crate defines a set of commonly used cli utils. #![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-...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/util/src/sigsegv_handler.rs
crates/cli/util/src/sigsegv_handler.rs
//! Signal handler to extract a backtrace from stack overflow. //! //! Implementation modified from [`rustc`](https://github.com/rust-lang/rust/blob/3dee9775a8c94e701a08f7b2df2c444f353d8699/compiler/rustc_driver_impl/src/signal_handler.rs). use std::{ alloc::{alloc, Layout}, fmt, mem, ptr, }; extern "C" { ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/util/src/load_secret_key.rs
crates/cli/util/src/load_secret_key.rs
use reth_fs_util::{self as fs, FsPathError}; use secp256k1::{Error as SecretKeyBaseError, SecretKey}; use std::{ io, path::{Path, PathBuf}, }; use thiserror::Error; /// Convenience function to create a new random [`SecretKey`] pub fn rng_secret_key() -> SecretKey { SecretKey::new(&mut rand_08::thread_rng()...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/util/src/allocator.rs
crates/cli/util/src/allocator.rs
//! Custom allocator implementation. //! //! We provide support for jemalloc and snmalloc on unix systems, and prefer jemalloc if both are //! enabled. // We provide jemalloc allocator support, alongside snmalloc. If both features are enabled, jemalloc // is prioritized. cfg_if::cfg_if! { if #[cfg(all(feature = "j...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/util/src/parsers.rs
crates/cli/util/src/parsers.rs
use alloy_eips::BlockHashOrNumber; use alloy_primitives::B256; use reth_fs_util::FsPathError; use std::{ net::{IpAddr, Ipv4Addr, SocketAddr, ToSocketAddrs}, path::Path, str::FromStr, time::Duration, }; /// Helper to parse a [Duration] from seconds pub fn parse_duration_from_secs(arg: &str) -> eyre::Res...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/prune.rs
crates/cli/commands/src/prune.rs
//! Command that runs pruning without any limits. use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_prune::PrunerBuilder; use reth_static_file::StaticFileProducer; use...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/node.rs
crates/cli/commands/src/node.rs
//! Main node command for launching a node use crate::launcher::Launcher; use clap::{value_parser, Args, Parser}; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_cli_runner::CliContext; use reth_cli_util::parse_socket_address; use reth_db::init_db; use reth_nod...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/lib.rs
crates/cli/commands/src/lib.rs
//! Commonly used reth CLI commands. #![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/crates/cli/commands/src/dump_genesis.rs
crates/cli/commands/src/dump_genesis.rs
//! Command that dumps genesis block JSON configuration to stdout use std::sync::Arc; use clap::Parser; use reth_chainspec::EthChainSpec; use reth_cli::chainspec::ChainSpecParser; /// Dumps genesis block JSON configuration to stdout #[derive(Debug, Parser)] pub struct DumpGenesisCommand<C: ChainSpecParser> { /// ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/download.rs
crates/cli/commands/src/download.rs
use crate::common::EnvironmentArgs; use clap::Parser; use eyre::Result; use lz4::Decoder; use reqwest::Client; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_fs_util as fs; use std::{ io::{self, Read, Write}, path::Path, sync::Arc, time::{Durati...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/import_era.rs
crates/cli/commands/src/import_era.rs
//! Command that initializes the node by importing a chain from ERA files. use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use alloy_chains::{ChainKind, NamedChain}; use clap::{Args, Parser}; use eyre::eyre; use reqwest::{Client, Url}; use reth_chainspec::{EthChainSpec, EthereumHardforks}...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/export_era.rs
crates/cli/commands/src/export_era.rs
//! Command exporting block data to convert them to ERA1 files. use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use clap::{Args, Parser}; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_era::execution_types::MAX_BLOCKS_PER_ERA1; u...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/config_cmd.rs
crates/cli/commands/src/config_cmd.rs
//! CLI command to show configs. use clap::Parser; use eyre::{bail, WrapErr}; use reth_config::Config; use std::path::PathBuf; /// `reth config` command #[derive(Debug, Parser)] pub struct Command { /// The path to the configuration file to use. #[arg(long, value_name = "FILE", verbatim_doc_comment)] confi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/import_core.rs
crates/cli/commands/src/import_core.rs
//! Core import functionality without CLI dependencies. use alloy_primitives::B256; use futures::StreamExt; use reth_config::Config; use reth_consensus::FullConsensus; use reth_db_api::{tables, transaction::DbTx}; use reth_downloaders::{ bodies::bodies::BodiesDownloaderBuilder, file_client::{ChunkedFileReader,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/common.rs
crates/cli/commands/src/common.rs
//! Contains common `reth` arguments use alloy_primitives::B256; use clap::Parser; use reth_chainspec::EthChainSpec; use reth_cli::chainspec::ChainSpecParser; use reth_config::{config::EtlConfig, Config}; use reth_consensus::{noop::NoopConsensus, ConsensusError, FullConsensus}; use reth_db::{init_db, open_db_read_only...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/launcher.rs
crates/cli/commands/src/launcher.rs
use futures::Future; use reth_cli::chainspec::ChainSpecParser; use reth_db::DatabaseEnv; use reth_node_builder::{NodeBuilder, WithLaunchContext}; use std::{fmt, sync::Arc}; /// A trait for launching a reth node with custom configuration strategies. /// /// This trait allows defining node configuration through various ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/import.rs
crates/cli/commands/src/import.rs
//! Command that initializes the node by importing a chain from a file. use crate::{ common::{AccessRights, CliNodeComponents, CliNodeTypes, Environment, EnvironmentArgs}, import_core::{import_blocks_from_file, ImportConfig}, }; use clap::Parser; use reth_chainspec::{ChainSpecProvider, EthChainSpec, EthereumHar...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/init_cmd.rs
crates/cli/commands/src/init_cmd.rs
//! Command that initializes the node from a genesis file. use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_provider::BlockHashReader; use std::sync::Arc; use tracin...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/re_execute.rs
crates/cli/commands/src/re_execute.rs
//! Re-execute blocks from database in parallel. use crate::common::{ AccessRights, CliComponentsBuilder, CliNodeComponents, CliNodeTypes, Environment, EnvironmentArgs, }; use alloy_consensus::{BlockHeader, TxReceipt}; use clap::Parser; use eyre::WrapErr; use reth_chainspec::{EthChainSpec, EthereumHardforks, H...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/recover/mod.rs
crates/cli/commands/src/recover/mod.rs
//! `reth recover` command. use crate::common::CliNodeTypes; use clap::{Parser, Subcommand}; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_cli_runner::CliContext; use std::sync::Arc; mod storage_tries; /// `reth recover` command #[derive(Debug, Parser)] pub...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/recover/storage_tries.rs
crates/cli/commands/src/recover/storage_tries.rs
use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use alloy_consensus::BlockHeader; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_cli_runner::CliContext; use reth_db_api::{ cursor::{DbCursorRO, DbDupCursorRW},...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/stats.rs
crates/cli/commands/src/db/stats.rs
use crate::{common::CliNodeTypes, db::checksum::ChecksumViewer}; use clap::Parser; use comfy_table::{Cell, Row, Table as ComfyTable}; use eyre::WrapErr; use human_bytes::human_bytes; use itertools::Itertools; use reth_chainspec::EthereumHardforks; use reth_db::{mdbx, static_file::iter_static_files, DatabaseEnv}; use re...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/diff.rs
crates/cli/commands/src/db/diff.rs
use clap::Parser; use reth_db::{open_db_read_only, tables_to_generic, DatabaseEnv}; use reth_db_api::{ cursor::DbCursorRO, database::Database, table::Table, transaction::DbTx, Tables, }; use reth_db_common::DbTool; use reth_node_builder::{NodeTypes, NodeTypesWithDBAdapter}; use reth_node_core::{ args::DatabaseA...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/list.rs
crates/cli/commands/src/db/list.rs
use super::tui::DbListTUI; use alloy_primitives::hex; use clap::Parser; use eyre::WrapErr; use reth_chainspec::EthereumHardforks; use reth_db::DatabaseEnv; use reth_db_api::{database::Database, table::Table, RawValue, TableViewer, Tables}; use reth_db_common::{DbTool, ListFilter}; use reth_node_builder::{NodeTypes, Nod...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/clear.rs
crates/cli/commands/src/db/clear.rs
use clap::{Parser, Subcommand}; use reth_db::static_file::iter_static_files; use reth_db_api::{ database::Database, table::Table, transaction::{DbTx, DbTxMut}, TableViewer, Tables, }; use reth_node_builder::NodeTypesWithDB; use reth_provider::{ProviderFactory, StaticFileProviderFactory}; use reth_static...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/checksum.rs
crates/cli/commands/src/db/checksum.rs
use crate::{ common::CliNodeTypes, db::get::{maybe_json_value_parser, table_key}, }; use alloy_primitives::map::foldhash::fast::FixedState; use clap::Parser; use reth_chainspec::EthereumHardforks; use reth_db::DatabaseEnv; use reth_db_api::{ cursor::DbCursorRO, table::Table, transaction::DbTx, RawKey, RawTa...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/mod.rs
crates/cli/commands/src/db/mod.rs
use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use clap::{Parser, Subcommand}; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_db::version::{get_db_version, DatabaseVersionError, DB_VERSION}; use reth_db_common::DbTool; use std::{...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/repair_trie.rs
crates/cli/commands/src/db/repair_trie.rs
use clap::Parser; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW, DbDupCursorRO}, database::Database, tables, transaction::{DbTx, DbTxMut}, }; use reth_node_builder::NodeTypesWithDB; use reth_provider::ProviderFactory; use reth_trie::{ verify::{Output, Verifier}, Nibbles, }; use reth_trie_co...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/tui.rs
crates/cli/commands/src/db/tui.rs
use crossterm::{ event::{self, Event, KeyCode, MouseEventKind}, execute, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; use ratatui::{ backend::{Backend, CrosstermBackend}, layout::{Alignment, Constraint, Direction, Layout}, style::{Color, Modifier,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/db/get.rs
crates/cli/commands/src/db/get.rs
use alloy_consensus::Header; use alloy_primitives::{hex, BlockHash}; use clap::Parser; use reth_db::{ static_file::{ ColumnSelectorOne, ColumnSelectorTwo, HeaderWithHashMask, ReceiptMask, TransactionMask, }, RawDupSort, }; use reth_db_api::{ table::{Decompress, DupSort, Table}, tables, RawKe...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/init_state/without_evm.rs
crates/cli/commands/src/init_state/without_evm.rs
use alloy_consensus::BlockHeader; use alloy_primitives::{BlockNumber, B256, U256}; use alloy_rlp::Decodable; use reth_codecs::Compact; use reth_node_builder::NodePrimitives; use reth_primitives_traits::{SealedBlock, SealedHeader, SealedHeaderFor}; use reth_provider::{ providers::StaticFileProvider, BlockWriter, Pro...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/init_state/mod.rs
crates/cli/commands/src/init_state/mod.rs
//! Command that initializes the node from a genesis file. use crate::common::{AccessRights, CliHeader, CliNodeTypes, Environment, EnvironmentArgs}; use alloy_consensus::BlockHeader as AlloyBlockHeader; use alloy_primitives::{B256, U256}; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use ret...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/mod.rs
crates/cli/commands/src/stage/mod.rs
//! `reth stage` command use std::sync::Arc; use crate::common::{CliNodeComponents, CliNodeTypes}; use clap::{Parser, Subcommand}; use reth_chainspec::{EthChainSpec, EthereumHardforks, Hardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_cli_runner::CliContext; pub mod drop; pub mod dump; pub mod run; pub ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/drop.rs
crates/cli/commands/src/stage/drop.rs
//! Database debugging tool use crate::common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}; use clap::Parser; use itertools::Itertools; use reth_chainspec::EthChainSpec; use reth_cli::chainspec::ChainSpecParser; use reth_db::{mdbx::tx::Tx, static_file::iter_static_files, DatabaseError}; use reth_db_api::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/unwind.rs
crates/cli/commands/src/stage/unwind.rs
//! Unwinding a certain block range use crate::{ common::{AccessRights, CliNodeTypes, Environment, EnvironmentArgs}, stage::CliNodeComponents, }; use alloy_eips::BlockHashOrNumber; use alloy_primitives::B256; use clap::{Parser, Subcommand}; use reth_chainspec::{ChainSpecProvider, EthChainSpec, EthereumHardfork...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/run.rs
crates/cli/commands/src/stage/run.rs
//! Main `stage` command //! //! Stage debugging tool use crate::common::{AccessRights, CliNodeComponents, CliNodeTypes, Environment, EnvironmentArgs}; use alloy_eips::BlockHashOrNumber; use alloy_primitives::Sealable; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks, Hardforks}; use reth_cli::ch...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/dump/merkle.rs
crates/cli/commands/src/stage/dump/merkle.rs
use std::sync::Arc; use super::setup; use alloy_primitives::BlockNumber; use eyre::Result; use reth_config::config::EtlConfig; use reth_consensus::{ConsensusError, FullConsensus}; use reth_db::DatabaseEnv; use reth_db_api::{database::Database, table::TableImporter, tables}; use reth_db_common::DbTool; use reth_evm::Co...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/dump/hashing_account.rs
crates/cli/commands/src/stage/dump/hashing_account.rs
use super::setup; use alloy_primitives::BlockNumber; use eyre::Result; use reth_db::DatabaseEnv; use reth_db_api::{database::Database, table::TableImporter, tables}; use reth_db_common::DbTool; use reth_node_core::dirs::{ChainPath, DataDirPath}; use reth_provider::{ providers::{ProviderNodeTypes, StaticFileProvider...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/dump/mod.rs
crates/cli/commands/src/stage/dump/mod.rs
//! Database debugging tool use crate::common::{AccessRights, CliNodeComponents, CliNodeTypes, Environment, EnvironmentArgs}; use clap::Parser; use reth_chainspec::{EthChainSpec, EthereumHardforks}; use reth_cli::chainspec::ChainSpecParser; use reth_db::{init_db, mdbx::DatabaseArguments, DatabaseEnv}; use reth_db_api::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/dump/hashing_storage.rs
crates/cli/commands/src/stage/dump/hashing_storage.rs
use super::setup; use eyre::Result; use reth_db::DatabaseEnv; use reth_db_api::{database::Database, table::TableImporter, tables}; use reth_db_common::DbTool; use reth_node_core::dirs::{ChainPath, DataDirPath}; use reth_provider::{ providers::{ProviderNodeTypes, StaticFileProvider}, DatabaseProviderFactory, Pro...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/stage/dump/execution.rs
crates/cli/commands/src/stage/dump/execution.rs
use super::setup; use reth_consensus::{noop::NoopConsensus, ConsensusError, FullConsensus}; use reth_db::DatabaseEnv; use reth_db_api::{ cursor::DbCursorRO, database::Database, table::TableImporter, tables, transaction::DbTx, }; use reth_db_common::DbTool; use reth_evm::ConfigureEvm; use reth_node_builder::NodeType...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/test_vectors/compact.rs
crates/cli/commands/src/test_vectors/compact.rs
use alloy_eips::eip4895::Withdrawals; use alloy_primitives::{hex, Signature, TxKind, B256}; use arbitrary::Arbitrary; use eyre::{Context, Result}; use proptest::{ prelude::{ProptestConfig, RngCore}, test_runner::{TestRng, TestRunner}, }; use reth_codecs::alloy::{ authorization_list::Authorization, genes...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/test_vectors/mod.rs
crates/cli/commands/src/test_vectors/mod.rs
//! Command for generating test vectors. use clap::{Parser, Subcommand}; pub mod compact; pub mod tables; /// Generate test-vectors for different data types. #[derive(Debug, Parser)] pub struct Command { #[command(subcommand)] command: Subcommands, } #[derive(Subcommand, Debug)] /// `reth test-vectors` subc...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/test_vectors/tables.rs
crates/cli/commands/src/test_vectors/tables.rs
use alloy_consensus::Header; use alloy_primitives::{hex, B256}; use arbitrary::Arbitrary; use eyre::Result; use proptest::{ prelude::ProptestConfig, strategy::{Strategy, ValueTree}, test_runner::{TestRng, TestRunner}, }; use proptest_arbitrary_interop::arb; use reth_db_api::{ table::{DupSort, Table, Tab...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/p2p/bootnode.rs
crates/cli/commands/src/p2p/bootnode.rs
//! Standalone bootnode command use clap::Parser; use reth_discv4::{DiscoveryUpdate, Discv4, Discv4Config}; use reth_discv5::{discv5::Event, Config, Discv5}; use reth_net_nat::NatResolver; use reth_network_peers::NodeRecord; use std::{net::SocketAddr, str::FromStr}; use tokio::select; use tokio_stream::StreamExt; use ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/p2p/rlpx.rs
crates/cli/commands/src/p2p/rlpx.rs
//! RLPx subcommand of P2P Debugging tool. use clap::{Parser, Subcommand}; use reth_ecies::stream::ECIESStream; use reth_eth_wire::{HelloMessage, UnauthedP2PStream}; use reth_network::config::rng_secret_key; use reth_network_peers::{pk2id, AnyNode}; use secp256k1::SECP256K1; use tokio::net::TcpStream; /// RLPx comman...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/commands/src/p2p/mod.rs
crates/cli/commands/src/p2p/mod.rs
//! P2P Debugging tool use std::{path::PathBuf, sync::Arc}; use crate::common::CliNodeTypes; use alloy_eips::BlockHashOrNumber; use backon::{ConstantBuilder, Retryable}; use clap::{Parser, Subcommand}; use reth_chainspec::{EthChainSpec, EthereumHardforks, Hardforks}; use reth_cli::chainspec::ChainSpecParser; 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/crates/cli/runner/src/lib.rs
crates/cli/runner/src/lib.rs
//! A tokio based CLI runner. #![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_att...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/cli/cli/src/lib.rs
crates/cli/cli/src/lib.rs
//! Cli abstraction for reth based nodes. #![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/crates/cli/cli/src/chainspec.rs
crates/cli/cli/src/chainspec.rs
use std::{fs, path::PathBuf, sync::Arc}; use clap::builder::TypedValueParser; #[derive(Debug, Clone)] struct Parser<C>(std::marker::PhantomData<C>); impl<C: ChainSpecParser> TypedValueParser for Parser<C> { type Value = Arc<C::ChainSpec>; fn parse_ref( &self, _cmd: &clap::Command, ar...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/chainspec/src/lib.rs
crates/chainspec/src/lib.rs
//! The spec of an Ethereum network #![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/" )] #![c...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/chainspec/src/info.rs
crates/chainspec/src/info.rs
use alloy_eips::BlockNumHash; use alloy_primitives::{BlockNumber, B256}; /// Current status of the blockchain's head. #[derive(Default, Copy, Clone, Debug, Eq, PartialEq)] pub struct ChainInfo { /// The block hash of the highest fully synced block. pub best_hash: B256, /// The block number of the highest f...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/chainspec/src/api.rs
crates/chainspec/src/api.rs
use crate::{ChainSpec, DepositContract}; use alloc::{boxed::Box, vec::Vec}; use alloy_chains::Chain; use alloy_consensus::Header; use alloy_eips::{calc_next_block_base_fee, eip1559::BaseFeeParams, eip7840::BlobParams}; use alloy_primitives::{B256, U256}; use core::fmt::{Debug, Display}; use reth_ethereum_forks::Ethereu...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/chainspec/src/constants.rs
crates/chainspec/src/constants.rs
use crate::spec::DepositContract; use alloy_eips::eip6110::MAINNET_DEPOSIT_CONTRACT_ADDRESS; use alloy_primitives::b256; /// Gas per transaction not creating a contract. pub const MIN_TRANSACTION_GAS: u64 = 21_000u64; /// Mainnet prune delete limit. pub const MAINNET_PRUNE_DELETE_LIMIT: usize = 20000; /// Deposit co...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/chainspec/src/spec.rs
crates/chainspec/src/spec.rs
pub use alloy_eips::eip1559::BaseFeeParams; use alloy_evm::eth::spec::EthExecutorSpec; use crate::{ constants::{MAINNET_DEPOSIT_CONTRACT, MAINNET_PRUNE_DELETE_LIMIT}, EthChainSpec, }; use alloc::{boxed::Box, sync::Arc, vec::Vec}; use alloy_chains::{Chain, NamedChain}; use alloy_consensus::{ constants::{ ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/src/stream.rs
crates/era-downloader/src/stream.rs
use crate::{client::HttpClient, EraClient, BLOCKS_PER_FILE}; use alloy_primitives::BlockNumber; use futures_util::{stream::FuturesOrdered, FutureExt, Stream, StreamExt}; use reqwest::Url; use reth_fs_util as fs; use std::{ collections::VecDeque, fmt::{Debug, Formatter}, future::Future, path::Path, p...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/src/lib.rs
crates/era-downloader/src/lib.rs
//! An asynchronous stream interface for downloading ERA1 files. //! //! # Examples //! ``` //! use futures_util::StreamExt; //! use reqwest::{Client, Url}; //! use reth_era_downloader::{EraClient, EraStream, EraStreamConfig}; //! use std::{path::PathBuf, str::FromStr}; //! //! # async fn f() -> Result<(), Box<dyn std:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/src/fs.rs
crates/era-downloader/src/fs.rs
use crate::{EraMeta, BLOCKS_PER_FILE}; use alloy_primitives::{hex, hex::ToHexExt, BlockNumber}; use eyre::{eyre, OptionExt}; use futures_util::{stream, Stream}; use reth_fs_util as fs; use sha2::{Digest, Sha256}; use std::{fmt::Debug, io, io::BufRead, path::Path, str::FromStr}; /// Creates a new ordered asynchronous [...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/src/client.rs
crates/era-downloader/src/client.rs
use alloy_primitives::{hex, hex::ToHexExt}; use bytes::Bytes; use eyre::{eyre, OptionExt}; use futures_util::{stream::StreamExt, Stream, TryStreamExt}; use reqwest::{Client, IntoUrl, Url}; use sha2::{Digest, Sha256}; use std::{future::Future, path::Path, str::FromStr}; use tokio::{ fs::{self, File}, io::{self, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/stream.rs
crates/era-downloader/tests/it/stream.rs
//! Tests downloading files and streaming their filenames use crate::StubClient; use futures_util::StreamExt; use reqwest::Url; use reth_era_downloader::{EraClient, EraStream, EraStreamConfig}; use std::str::FromStr; use tempfile::tempdir; use test_case::test_case; #[test_case("https://mainnet.era1.nimbus.team/"; "nim...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/download.rs
crates/era-downloader/tests/it/download.rs
//! Tests fetching a file use crate::StubClient; use reqwest::Url; use reth_era_downloader::EraClient; use std::str::FromStr; use tempfile::tempdir; use test_case::test_case; #[test_case("https://mainnet.era1.nimbus.team/"; "nimbus")] #[test_case("https://era1.ethportal.net/"; "ethportal")] #[test_case("https://era.it...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/fs.rs
crates/era-downloader/tests/it/fs.rs
use alloy_primitives::hex::ToHexExt; use futures_util::StreamExt; use reth_era_downloader::read_dir; use sha2::Digest; use tokio::fs; const CONTENTS_0: &[u8; 1] = b"a"; const CONTENTS_1: &[u8; 1] = b"b"; #[test_case::test_case( Ok(format!( "{}\n{}", sha2::Sha256::digest(CONTENTS_0).encode_hex(), ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/list.rs
crates/era-downloader/tests/it/list.rs
//! Tests fetching a list of files use crate::StubClient; use reqwest::Url; use reth_era_downloader::EraClient; use std::str::FromStr; use tempfile::tempdir; use test_case::test_case; #[test_case("https://mainnet.era1.nimbus.team/"; "nimbus")] #[test_case("https://era1.ethportal.net/"; "ethportal")] #[test_case("https...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/checksums.rs
crates/era-downloader/tests/it/checksums.rs
use bytes::Bytes; use futures::Stream; use futures_util::StreamExt; use reqwest::{IntoUrl, Url}; use reth_era_downloader::{EraClient, EraStream, EraStreamConfig, HttpClient}; use std::str::FromStr; use tempfile::tempdir; use test_case::test_case; #[test_case("https://mainnet.era1.nimbus.team/"; "nimbus")] #[test_case(...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/era-downloader/tests/it/main.rs
crates/era-downloader/tests/it/main.rs
//! Root module for test modules, so that the tests are built into a single binary. mod checksums; mod download; mod fs; mod list; mod stream; const fn main() {} use bytes::Bytes; use futures::Stream; use reqwest::IntoUrl; use reth_era_downloader::HttpClient; pub(crate) const NIMBUS: &[u8] = include_bytes!("../res/...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/util/src/lib.rs
crates/engine/util/src/lib.rs
//! Collection of various stream utilities for consensus engine. #![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/paradigmxyz/ret...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/util/src/skip_fcu.rs
crates/engine/util/src/skip_fcu.rs
//! Stream wrapper that skips specified number of FCUs. use futures::{Stream, StreamExt}; use reth_engine_primitives::{BeaconEngineMessage, OnForkChoiceUpdated}; use reth_payload_primitives::PayloadTypes; use std::{ pin::Pin, task::{ready, Context, Poll}, }; /// Engine API stream wrapper that skips the specif...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/util/src/reorg.rs
crates/engine/util/src/reorg.rs
//! Stream wrapper that simulates reorgs. use alloy_consensus::{BlockHeader, Transaction}; use alloy_rpc_types_engine::{ForkchoiceState, PayloadStatus}; use futures::{stream::FuturesUnordered, Stream, StreamExt, TryFutureExt}; use itertools::Either; use reth_chainspec::{ChainSpecProvider, EthChainSpec}; use reth_engin...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/util/src/skip_new_payload.rs
crates/engine/util/src/skip_new_payload.rs
//! Stream wrapper that skips specified number of new payload messages. use alloy_rpc_types_engine::{PayloadStatus, PayloadStatusEnum}; use futures::{Stream, StreamExt}; use reth_engine_primitives::{BeaconEngineMessage, ExecutionPayload}; use reth_payload_primitives::PayloadTypes; use std::{ pin::Pin, task::{r...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/util/src/engine_store.rs
crates/engine/util/src/engine_store.rs
//! Stores engine API messages to disk for later inspection and replay. use alloy_rpc_types_engine::ForkchoiceState; use futures::{Stream, StreamExt}; use reth_engine_primitives::{BeaconEngineMessage, ExecutionPayload}; use reth_fs_util as fs; use reth_payload_primitives::PayloadTypes; use serde::{Deserialize, Seriali...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/service/src/lib.rs
crates/engine/service/src/lib.rs
//! Engine service implementation. #![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/" )] #![cf...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/service/src/service.rs
crates/engine/service/src/service.rs
use futures::{Stream, StreamExt}; use pin_project::pin_project; use reth_chainspec::EthChainSpec; use reth_consensus::{ConsensusError, FullConsensus}; use reth_engine_primitives::{BeaconEngineMessage, ConsensusEngineEvent}; use reth_engine_tree::{ backfill::PipelineSync, backup::BackupHandle, download::Basi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/invalid-block-hooks/src/lib.rs
crates/engine/invalid-block-hooks/src/lib.rs
//! Invalid block hook implementations. mod witness; pub use witness::InvalidBlockWitnessHook;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/invalid-block-hooks/src/witness.rs
crates/engine/invalid-block-hooks/src/witness.rs
use alloy_consensus::BlockHeader; use alloy_primitives::{keccak256, Address, B256, U256}; use alloy_rpc_types_debug::ExecutionWitness; use pretty_assertions::Comparison; use reth_engine_primitives::InvalidBlockHook; use reth_evm::{execute::Executor, ConfigureEvm}; use reth_primitives_traits::{NodePrimitives, RecoveredB...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/config.rs
crates/engine/primitives/src/config.rs
//! Engine tree configuration. /// Triggers persistence when the number of canonical blocks in memory exceeds this threshold. pub const DEFAULT_PERSISTENCE_THRESHOLD: u64 = 0; // todo(dalton): Maybe feature flag this? We need this so archive nodes can get an accurate /...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/event.rs
crates/engine/primitives/src/event.rs
//! Events emitted by the beacon consensus engine. use crate::ForkchoiceStatus; use alloc::boxed::Box; use alloy_consensus::BlockHeader; use alloy_eips::BlockNumHash; use alloy_primitives::B256; use alloy_rpc_types_engine::ForkchoiceState; use core::{ fmt::{Display, Formatter, Result}, time::Duration, }; use r...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/forkchoice.rs
crates/engine/primitives/src/forkchoice.rs
use alloy_primitives::B256; use alloy_rpc_types_engine::{ForkchoiceState, PayloadStatusEnum}; /// The struct that keeps track of the received forkchoice state and their status. #[derive(Debug, Clone, Default)] pub struct ForkchoiceStateTracker { /// The latest forkchoice state that we received. /// /// Cau...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/lib.rs
crates/engine/primitives/src/lib.rs
//! Traits, validation methods, and helper types used to abstract over engine types. #![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...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/invalid_block_hook.rs
crates/engine/primitives/src/invalid_block_hook.rs
use alloc::{boxed::Box, fmt, vec::Vec}; use alloy_primitives::B256; use reth_execution_types::BlockExecutionOutput; use reth_primitives_traits::{NodePrimitives, RecoveredBlock, SealedHeader}; use reth_trie_common::updates::TrieUpdates; /// An invalid block hook. pub trait InvalidBlockHook<N: NodePrimitives>: Send + Sy...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/error.rs
crates/engine/primitives/src/error.rs
use alloc::boxed::Box; use alloy_rpc_types_engine::ForkchoiceUpdateError; /// Represents all error cases when handling a new payload. /// /// This represents all possible error cases that must be returned as JSON RPC errors back to the /// beacon node. #[derive(Debug, thiserror::Error)] pub enum BeaconOnNewPayloadErro...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/primitives/src/message.rs
crates/engine/primitives/src/message.rs
use crate::{ error::BeaconForkChoiceUpdateError, BeaconOnNewPayloadError, ExecutionPayload, ForkchoiceStatus, }; use alloy_rpc_types_engine::{ ForkChoiceUpdateResult, ForkchoiceState, ForkchoiceUpdateError, ForkchoiceUpdated, PayloadId, PayloadStatus, PayloadStatusEnum, }; use core::{ fmt::{self, Displa...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/local/src/miner.rs
crates/engine/local/src/miner.rs
//! Contains the implementation of the mining mode for the local engine. use alloy_consensus::BlockHeader; use alloy_primitives::{TxHash, B256}; use alloy_rpc_types_engine::ForkchoiceState; use eyre::OptionExt; use futures_util::{stream::Fuse, StreamExt}; use reth_engine_primitives::ConsensusEngineHandle; use reth_pay...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/local/src/lib.rs
crates/engine/local/src/lib.rs
//! A local engine service that can be used to drive a dev chain. #![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...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/local/src/service.rs
crates/engine/local/src/service.rs
//! Provides a local dev service engine that can be used to run a dev chain. //! //! [`LocalEngineService`] polls the payload builder based on a mining mode //! which can be set to `Instant` or `Interval`. The `Instant` mode will //! constantly poll the payload builder and initiate block building //! with a single tran...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/local/src/payload.rs
crates/engine/local/src/payload.rs
//! The implementation of the [`PayloadAttributesBuilder`] for the //! [`LocalMiner`](super::LocalMiner). use alloy_primitives::{Address, B256}; use reth_chainspec::EthereumHardforks; use reth_ethereum_engine_primitives::EthPayloadAttributes; use reth_payload_primitives::PayloadAttributesBuilder; use std::sync::Arc; ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/engine.rs
crates/engine/tree/src/engine.rs
//! An engine API handler for the chain. use crate::{ backfill::BackfillAction, chain::{ChainHandler, FromOrchestrator, HandlerEvent}, download::{BlockDownloader, DownloadAction, DownloadOutcome}, }; use alloy_primitives::B256; use futures::{Stream, StreamExt}; use reth_chain_state::ExecutedBlockWithTrieUp...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/lib.rs
crates/engine/tree/src/lib.rs
//! This crate includes the core components for advancing a reth chain. //! //! ## Functionality //! //! The components in this crate are involved in: //! * Handling and reacting to incoming consensus events ([`EngineHandler`](engine::EngineHandler)) //! * Advancing the chain ([`ChainOrchestrator`](chain::ChainOrchestr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/download.rs
crates/engine/tree/src/download.rs
//! Handler that can download blocks on demand (e.g. from the network). use crate::{engine::DownloadRequest, metrics::BlockDownloaderMetrics}; use alloy_consensus::BlockHeader; use alloy_primitives::B256; use futures::FutureExt; use reth_consensus::{Consensus, ConsensusError}; use reth_network_p2p::{ full_block::{...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/persistence.rs
crates/engine/tree/src/persistence.rs
use crate::metrics::PersistenceMetrics; use alloy_consensus::BlockHeader; use alloy_eips::BlockNumHash; use reth_chain_state::ExecutedBlockWithTrieUpdates; use reth_errors::ProviderError; use reth_ethereum_primitives::EthPrimitives; use reth_primitives_traits::NodePrimitives; use reth_provider::{ providers::Provide...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/chain.rs
crates/engine/tree/src/chain.rs
use crate::backfill::{BackfillAction, BackfillEvent, BackfillSync}; use futures::Stream; use reth_stages_api::{ControlFlow, PipelineTarget}; use std::{ fmt::{Display, Formatter, Result}, pin::Pin, task::{Context, Poll}, }; use tracing::*; /// The type that drives the chain forward. /// /// A state machine ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/backfill.rs
crates/engine/tree/src/backfill.rs
//! It is expected that the node has two sync modes: //! //! - Backfill sync: Sync to a certain block height in stages, e.g. download data from p2p then //! execute that range. //! - Live sync: In this mode the node is keeping up with the latest tip and listens for new //! requests from the consensus client. //...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/test_utils.rs
crates/engine/tree/src/test_utils.rs
use alloy_primitives::B256; use reth_chainspec::ChainSpec; use reth_ethereum_primitives::BlockBody; use reth_network_p2p::test_utils::TestFullBlockClient; use reth_primitives_traits::SealedHeader; use reth_provider::{ test_utils::{create_test_provider_factory_with_chain_spec, MockNodeTypesWithDB}, ExecutionOutc...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/backup.rs
crates/engine/tree/src/backup.rs
//! reth's database backup functionality use alloy_eips::BlockNumHash; use reth_errors::ProviderError; use reth_node_core::dirs::{ChainPath, DataDirPath}; use std::{ path::PathBuf, sync::mpsc::{Receiver, Sender}, time::Instant, }; use thiserror::Error; use tokio::sync::oneshot; use tracing::*; /// Configur...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/metrics.rs
crates/engine/tree/src/metrics.rs
use reth_metrics::{ metrics::{Gauge, Histogram}, Metrics, }; /// Metrics for the `BasicBlockDownloader`. #[derive(Metrics)] #[metrics(scope = "consensus.engine.beacon")] pub(crate) struct BlockDownloaderMetrics { /// How many blocks are currently being downloaded. pub(crate) active_block_downloads: Gau...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/trie_updates.rs
crates/engine/tree/src/tree/trie_updates.rs
use alloy_primitives::{map::HashMap, B256}; use reth_db::DatabaseError; use reth_trie::{ trie_cursor::{TrieCursor, TrieCursorFactory}, updates::{StorageTrieUpdates, TrieUpdates}, BranchNodeCompact, Nibbles, }; use std::collections::BTreeSet; use tracing::warn; #[derive(Debug)] struct EntryDiff<T> { tas...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/tests.rs
crates/engine/tree/src/tree/tests.rs
use super::*; use crate::{backup::BackupHandle, persistence::PersistenceAction}; use alloy_consensus::Header; use alloy_primitives::{ map::{HashMap, HashSet}, Bytes, B256, }; use alloy_rlp::Decodable; use alloy_rpc_types_engine::{ExecutionData, ExecutionPayloadSidecar, ExecutionPayloadV1}; use assert_matches::a...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/block_buffer.rs
crates/engine/tree/src/tree/block_buffer.rs
use crate::tree::metrics::BlockBufferMetrics; use alloy_consensus::BlockHeader; use alloy_primitives::{BlockHash, BlockNumber}; use reth_primitives_traits::{Block, RecoveredBlock}; use std::collections::{BTreeMap, HashMap, HashSet, VecDeque}; /// Contains the tree of pending blocks that cannot be executed due to missi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/state.rs
crates/engine/tree/src/tree/state.rs
//! Functionality related to tree state. use crate::engine::EngineApiKind; use alloy_eips::{eip1898::BlockWithParent, merge::EPOCH_SLOTS, BlockNumHash}; use alloy_primitives::{ map::{HashMap, HashSet}, BlockNumber, B256, }; use reth_chain_state::{EthPrimitives, ExecutedBlockWithTrieUpdates}; use reth_primitive...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/precompile_cache.rs
crates/engine/tree/src/tree/precompile_cache.rs
//! Contains a precompile cache that is backed by a moka cache. use alloy_primitives::Bytes; use parking_lot::Mutex; use reth_evm::precompiles::{DynPrecompile, Precompile, PrecompileInput}; use revm::precompile::{PrecompileId, PrecompileOutput, PrecompileResult}; use revm_primitives::Address; use schnellru::LruMap; us...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/engine/tree/src/tree/error.rs
crates/engine/tree/src/tree/error.rs
//! Internal errors for the tree module. use alloy_consensus::BlockHeader; use alloy_primitives::B256; use reth_consensus::ConsensusError; use reth_errors::{BlockExecutionError, BlockValidationError, ProviderError}; use reth_evm::execute::InternalBlockExecutionError; use reth_payload_primitives::NewPayloadError; use r...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false