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/stages/stages/src/stages/hashing_account.rs
crates/stages/stages/src/stages/hashing_account.rs
use alloy_primitives::{keccak256, B256}; use itertools::Itertools; use reth_config::config::{EtlConfig, HashingConfig}; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, tables, transaction::{DbTx, DbTxMut}, RawKey, RawTable, RawValue, }; use reth_etl::Collector; use reth_primitives_traits::Account; ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/stages/utils.rs
crates/stages/stages/src/stages/utils.rs
//! Utils for `stages`. use alloy_primitives::{BlockNumber, TxNumber}; use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, models::sharded_key::NUM_OF_INDICES_IN_SHARD, table::{Decompress, Table}, transaction::{DbTx, DbTxMut}, BlockNumberList, DatabaseError, }; 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/stages/stages/src/stages/bodies.rs
crates/stages/stages/src/stages/bodies.rs
use super::missing_static_data_error; use futures_util::TryStreamExt; use reth_db_api::{ cursor::DbCursorRO, tables, transaction::{DbTx, DbTxMut}, }; use reth_network_p2p::bodies::{downloader::BodyDownloader, response::BlockResponse}; use reth_provider::{ providers::StaticFileWriter, BlockReader, BlockW...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/stages/mod.rs
crates/stages/stages/src/stages/mod.rs
/// The bodies stage. mod bodies; /// The execution stage that generates state diff. mod execution; /// The finish stage mod finish; /// Account hashing stage. mod hashing_account; /// Storage hashing stage. mod hashing_storage; /// The headers stage. mod headers; /// Index history of account changes mod index_account_...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/stages/hashing_storage.rs
crates/stages/stages/src/stages/hashing_storage.rs
use alloy_primitives::{bytes::BufMut, keccak256, B256}; use itertools::Itertools; use reth_config::config::{EtlConfig, HashingConfig}; use reth_db_api::{ cursor::{DbCursorRO, DbDupCursorRW}, models::{BlockNumberAddress, CompactU256}, table::Decompress, tables, transaction::{DbTx, DbTxMut}, }; 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/stages/stages/src/stages/execution.rs
crates/stages/stages/src/stages/execution.rs
use crate::stages::MERKLE_STAGE_DEFAULT_INCREMENTAL_THRESHOLD; use alloy_consensus::BlockHeader; use alloy_primitives::BlockNumber; use num_traits::Zero; use reth_config::config::ExecutionConfig; use reth_consensus::{ConsensusError, FullConsensus}; use reth_db::{static_file::HeaderMask, tables}; use reth_evm::{execute:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/stages/finish.rs
crates/stages/stages/src/stages/finish.rs
use reth_stages_api::{ ExecInput, ExecOutput, Stage, StageCheckpoint, StageError, StageId, UnwindInput, UnwindOutput, }; /// The finish stage. /// /// This stage does not write anything; it's checkpoint is used to denote the highest fully synced /// block. #[derive(Default, Debug, Clone)] #[non_exhaustive] pub str...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/stages/era.rs
crates/stages/stages/src/stages/era.rs
use crate::{StageCheckpoint, StageId}; use alloy_primitives::{BlockHash, BlockNumber}; use futures_util::{Stream, StreamExt}; use reqwest::{Client, Url}; use reth_config::config::EtlConfig; use reth_db_api::{table::Value, transaction::DbTxMut}; use reth_era::{era1_file::Era1Reader, era_file_ops::StreamReader}; 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/stages/stages/src/test_utils/runner.rs
crates/stages/stages/src/test_utils/runner.rs
use super::TestStageDB; use reth_db::{test_utils::TempDatabase, Database, DatabaseEnv}; use reth_provider::{test_utils::MockNodeTypesWithDB, DatabaseProvider, ProviderError}; use reth_stages_api::{ ExecInput, ExecOutput, Stage, StageError, StageExt, UnwindInput, UnwindOutput, }; use reth_storage_errors::db::Databas...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/test_utils/test_db.rs
crates/stages/stages/src/test_utils/test_db.rs
use alloy_primitives::{keccak256, Address, BlockNumber, TxHash, TxNumber, B256, U256}; use reth_chainspec::MAINNET; use reth_db::{ test_utils::{create_test_rw_db, create_test_rw_db_with_path, create_test_static_files_dir}, DatabaseEnv, }; use reth_db_api::{ common::KeyValue, cursor::{DbCursorRO, DbCurso...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/test_utils/macros.rs
crates/stages/stages/src/test_utils/macros.rs
macro_rules! stage_test_suite { ($runner:ident, $name:ident) => { paste::item! { /// Check that the execution is short-circuited if the database is empty. #[tokio::test] async fn [< execute_empty_db_ $name>] () { // Set up the runner let ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/src/test_utils/mod.rs
crates/stages/stages/src/test_utils/mod.rs
use reth_stages_api::StageId; #[cfg(test)] mod macros; #[cfg(test)] pub(crate) use macros::*; #[cfg(test)] mod runner; #[cfg(test)] pub(crate) use runner::{ ExecuteStageTestRunner, StageTestRunner, TestRunnerError, UnwindStageTestRunner, }; mod test_db; pub use test_db::{StorageKind, TestStageDB}; mod set; 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/stages/stages/src/test_utils/set.rs
crates/stages/stages/src/test_utils/set.rs
use super::TEST_STAGE_ID; use crate::{StageSet, StageSetBuilder}; use reth_stages_api::{test_utils::TestStage, ExecOutput, StageError, UnwindOutput}; use std::collections::VecDeque; #[derive(Default, Debug)] pub struct TestStages { exec_outputs: VecDeque<Result<ExecOutput, StageError>>, unwind_outputs: VecDequ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/benches/criterion.rs
crates/stages/stages/benches/criterion.rs
#![allow(missing_docs)] #![allow(unexpected_cfgs)] use alloy_primitives::BlockNumber; use criterion::{criterion_main, measurement::WallTime, BenchmarkGroup, Criterion}; use reth_config::config::{EtlConfig, TransactionLookupConfig}; use reth_db::{test_utils::TempDatabase, Database, DatabaseEnv}; use reth_provider::{tes...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/benches/setup/mod.rs
crates/stages/stages/benches/setup/mod.rs
#![expect(unreachable_pub)] use alloy_primitives::{Address, B256, U256}; use itertools::concat; use reth_db::{test_utils::TempDatabase, Database, DatabaseEnv}; use reth_db_api::{ cursor::DbCursorRO, tables, transaction::{DbTx, DbTxMut}, }; use reth_primitives_traits::{Account, SealedBlock, SealedHeader}; 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/stages/stages/benches/setup/constants.rs
crates/stages/stages/benches/setup/constants.rs
#![allow(unreachable_pub)] pub const ACCOUNT_HASHING_DB: &str = "ACCOUNT_HASHING_DB";
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/stages/benches/setup/account_hashing.rs
crates/stages/stages/benches/setup/account_hashing.rs
#![allow(unreachable_pub)] use super::constants; use alloy_primitives::BlockNumber; use reth_db_api::{ cursor::DbCursorRO, database::Database, tables, transaction::DbTx, DatabaseError as DbError, }; use reth_stages::{ stages::{AccountHashingStage, SeedOpts}, test_utils::TestStageDB, StageCheckpoint, };...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/stage.rs
crates/stages/api/src/stage.rs
use crate::{error::StageError, StageCheckpoint, StageId}; use alloy_primitives::{BlockNumber, TxNumber}; use reth_provider::{BlockReader, ProviderError}; use std::{ cmp::{max, min}, future::{poll_fn, Future}, ops::{Range, RangeInclusive}, task::{Context, Poll}, }; /// Stage execution input, see [`Stage...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/lib.rs
crates/stages/api/src/lib.rs
//! Staged syncing primitives for reth. //! //! ## Feature Flags //! //! - `test-utils`: Utilities for testing #![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_...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/test_utils.rs
crates/stages/api/src/test_utils.rs
#![allow(missing_docs)] use crate::{ExecInput, ExecOutput, Stage, StageError, StageId, UnwindInput, UnwindOutput}; use std::{ collections::VecDeque, sync::{ atomic::{AtomicUsize, Ordering}, Arc, }, }; /// A test stage that can be used for testing. /// /// This can be used to mock expected ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/error.rs
crates/stages/api/src/error.rs
use crate::PipelineEvent; use alloy_eips::eip1898::BlockWithParent; use reth_consensus::ConsensusError; use reth_errors::{BlockExecutionError, DatabaseError, RethError}; use reth_network_p2p::error::DownloadError; use reth_provider::ProviderError; use reth_prune::{PruneSegment, PruneSegmentError, PrunerError, UnwindTar...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/util.rs
crates/stages/api/src/util.rs
pub(crate) mod opt { /// Get an [Option] with the maximum value, compared between the passed in value and the inner /// value of the [Option]. If the [Option] is `None`, then an option containing the passed in /// value will be returned. pub(crate) fn max<T: Ord + Copy>(a: Option<T>, b: T) -> Option<T> ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/metrics/listener.rs
crates/stages/api/src/metrics/listener.rs
use crate::{metrics::SyncMetrics, StageCheckpoint, StageId}; use alloy_primitives::BlockNumber; use std::{ future::Future, pin::Pin, task::{ready, Context, Poll}, time::Duration, }; use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender}; use tracing::trace; /// Alias type for metric producers to 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/stages/api/src/metrics/mod.rs
crates/stages/api/src/metrics/mod.rs
mod listener; mod sync_metrics; pub use listener::{MetricEvent, MetricEventsSender, MetricsListener}; use sync_metrics::*;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/metrics/sync_metrics.rs
crates/stages/api/src/metrics/sync_metrics.rs
use crate::StageId; use reth_metrics::{metrics::Gauge, Metrics}; use std::collections::HashMap; #[derive(Debug, Default)] pub(crate) struct SyncMetrics { /// Stage metrics by stage. pub(crate) stages: HashMap<StageId, StageMetrics>, } impl SyncMetrics { /// Returns existing or initializes a new instance o...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/ctrl.rs
crates/stages/api/src/pipeline/ctrl.rs
use alloy_eips::eip1898::BlockWithParent; use alloy_primitives::BlockNumber; /// Determines the control flow during pipeline execution. /// /// See [`Pipeline::run_loop`](crate::Pipeline::run_loop) for more information. #[derive(Debug, Clone, Eq, PartialEq)] pub enum ControlFlow { /// An unwind was requested and m...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/event.rs
crates/stages/api/src/pipeline/event.rs
use crate::{ stage::{ExecOutput, UnwindInput, UnwindOutput}, StageCheckpoint, StageId, }; use alloy_primitives::BlockNumber; use std::fmt::{Display, Formatter}; /// An event emitted by a [Pipeline][crate::Pipeline]. /// /// It is possible for multiple of these events to be emitted over the duration of a pipeli...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/builder.rs
crates/stages/api/src/pipeline/builder.rs
use crate::{pipeline::BoxedStage, MetricEventsSender, Pipeline, Stage, StageId, StageSet}; use alloy_primitives::{BlockNumber, B256}; use reth_provider::{providers::ProviderNodeTypes, DatabaseProviderFactory, ProviderFactory}; use reth_static_file::StaticFileProducer; use tokio::sync::watch; /// Builds a [`Pipeline`]....
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/progress.rs
crates/stages/api/src/pipeline/progress.rs
use crate::{util::opt, ControlFlow}; use alloy_primitives::BlockNumber; #[derive(Debug, Default)] pub(crate) struct PipelineProgress { /// Block number reached by the stage. pub(crate) block_number: Option<BlockNumber>, /// The maximum block number achieved by any stage during the execution of the pipeline...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/mod.rs
crates/stages/api/src/pipeline/mod.rs
mod ctrl; mod event; pub use crate::pipeline::ctrl::ControlFlow; use crate::{PipelineTarget, StageCheckpoint, StageId}; use alloy_primitives::{BlockNumber, B256}; pub use event::*; use futures_util::Future; use reth_primitives_traits::constants::BEACON_CONSENSUS_REORG_UNWIND_DEPTH; use reth_provider::{ providers::P...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/api/src/pipeline/set.rs
crates/stages/api/src/pipeline/set.rs
use crate::{Stage, StageId}; use std::{ collections::HashMap, fmt::{Debug, Formatter}, }; /// Combines multiple [`Stage`]s into a single unit. /// /// A [`StageSet`] is a logical chunk of stages that depend on each other. It is up to the /// individual stage sets to determine what kind of configuration they ex...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/types/src/checkpoints.rs
crates/stages/types/src/checkpoints.rs
use super::StageId; use alloc::{format, string::String, vec::Vec}; use alloy_primitives::{Address, BlockNumber, B256, U256}; use core::ops::RangeInclusive; use reth_trie_common::{hash_builder::HashBuilderState, StoredSubNode}; /// Saves the progress of Merkle stage. #[derive(Default, Debug, Clone, PartialEq, Eq)] 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/stages/types/src/lib.rs
crates/stages/types/src/lib.rs
//! Commonly used types for staged sync usage. #![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/issue...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/types/src/id.rs
crates/stages/types/src/id.rs
use alloc::vec::Vec; #[cfg(feature = "std")] use std::{collections::HashMap, sync::OnceLock}; /// Stage IDs for all known stages. /// /// For custom stages, use [`StageId::Other`] #[expect(missing_docs)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum StageId { #[deprecated( note = "Static File...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stages/types/src/execution.rs
crates/stages/types/src/execution.rs
use core::time::Duration; /// The thresholds at which the execution stage writes state changes to the database. /// /// If either of the thresholds (`max_blocks` and `max_changes`) are hit, then the execution stage /// commits all pending changes to the database. /// /// A third threshold, `max_changesets`, can be set...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/lib.rs
crates/primitives/src/lib.rs
//! Commonly used types in Reth. //! //! This crate contains Ethereum primitive types and helper functions. //! //! ## Feature Flags //! //! - `arbitrary`: Adds `proptest` and `arbitrary` support for primitive types. //! - `test-utils`: Export utilities for testing //! - `reth-codec`: Enables db codec support for 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/primitives/src/block.rs
crates/primitives/src/block.rs
use alloy_consensus::Header; use reth_ethereum_primitives::TransactionSigned; #[cfg(any(test, feature = "arbitrary"))] pub use reth_primitives_traits::test_utils::{generate_valid_header, valid_header_strategy}; /// Ethereum full block. /// /// Withdrawals can be optionally included at the end of the RLP encoded messag...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/receipt.rs
crates/primitives/src/receipt.rs
/// Retrieves gas spent by transactions as a vector of tuples (transaction index, gas used). pub use reth_primitives_traits::receipt::gas_spent_by_transactions; /// Receipt containing result of transaction execution. pub use reth_ethereum_primitives::Receipt;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/transaction/signature.rs
crates/primitives/src/transaction/signature.rs
pub use reth_primitives_traits::crypto::secp256k1::{recover_signer, recover_signer_unchecked};
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/transaction/util.rs
crates/primitives/src/transaction/util.rs
//! Utility functions for signature. pub use reth_primitives_traits::crypto::*;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/transaction/mod.rs
crates/primitives/src/transaction/mod.rs
//! Transaction types. use crate::Recovered; pub use alloy_consensus::transaction::PooledTransaction; use once_cell as _; #[expect(deprecated)] pub use pooled::PooledTransactionsElementEcRecovered; pub use reth_primitives_traits::{ sync::{LazyLock, OnceLock}, transaction::{ error::{ Invalid...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/transaction/pooled.rs
crates/primitives/src/transaction/pooled.rs
//! Defines the types for blob transactions, legacy, and other EIP-2718 transactions included in a //! response to `GetPooledTransactions`. use crate::Recovered; use alloy_consensus::transaction::PooledTransaction; /// A signed pooled transaction with recovered signer. #[deprecated(note = "use `Recovered` instead")] ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/src/transaction/tx_type.rs
crates/primitives/src/transaction/tx_type.rs
/// Transaction Type /// /// Currently being used as 2-bit type when encoding it to `reth_codecs::Compact` on /// [`crate::TransactionSigned`]. Adding more transaction types will break the codec and /// database format. /// /// Other required changes when adding a new type can be seen on [PR#3953](https://github.com/pa...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/benches/validate_blob_tx.rs
crates/primitives/benches/validate_blob_tx.rs
#![allow(missing_docs)] use alloy_consensus::TxEip4844; use alloy_eips::eip4844::{ env_settings::EnvKzgSettings, BlobTransactionSidecar, MAX_BLOBS_PER_BLOCK_DENCUN, }; use criterion::{ criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion, }; use proptest::{prelude::*, strategy::Val...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/primitives/benches/recover_ecdsa_crit.rs
crates/primitives/benches/recover_ecdsa_crit.rs
#![allow(missing_docs)] use alloy_consensus::transaction::SignerRecoverable; use alloy_primitives::hex_literal::hex; use alloy_rlp::Decodable; use criterion::{criterion_group, criterion_main, Criterion}; use reth_ethereum_primitives::TransactionSigned; /// Benchmarks the recovery of the public key from the ECDSA messa...
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-utils/src/lib.rs
crates/era-utils/src/lib.rs
//! Utilities to store history from downloaded ERA files with storage-api //! and export it to recreate era1 files. //! //! The import is downloaded using [`reth_era_downloader`] and parsed using [`reth_era`]. mod history; /// Export block history data from the database to recreate era1 files. mod export; /// Expor...
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-utils/src/history.rs
crates/era-utils/src/history.rs
use alloy_primitives::{BlockHash, BlockNumber, U256}; use futures_util::{Stream, StreamExt}; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, table::Value, tables, transaction::{DbTx, DbTxMut}, RawKey, RawTable, RawValue, }; use reth_era::{ e2s_types::E2sError, era1_file::{BlockTupleIter...
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-utils/src/export.rs
crates/era-utils/src/export.rs
//! Logic to export from database era1 block history //! and injecting them into era1 files with `Era1Writer`. use alloy_consensus::BlockHeader; use alloy_primitives::{BlockNumber, B256, U256}; use eyre::{eyre, Result}; use reth_era::{ e2s_types::IndexEntry, era1_file::Era1Writer, era1_types::{BlockIndex, ...
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-utils/tests/it/genesis.rs
crates/era-utils/tests/it/genesis.rs
use reth_db_common::init::init_genesis; use reth_era_utils::{export, ExportConfig}; use reth_fs_util as fs; use reth_provider::{test_utils::create_test_provider_factory, BlockReader}; use tempfile::tempdir; #[test] fn test_export_with_genesis_only() { let provider_factory = create_test_provider_factory(); init...
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-utils/tests/it/history.rs
crates/era-utils/tests/it/history.rs
use crate::{ClientWithFakeIndex, ITHACA_ERA_INDEX_URL}; use reqwest::{Client, Url}; use reth_db_common::init::init_genesis; use reth_era::execution_types::MAX_BLOCKS_PER_ERA1; use reth_era_downloader::{EraClient, EraStream, EraStreamConfig}; use reth_era_utils::{export, import, ExportConfig}; use reth_etl::Collector; 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/era-utils/tests/it/main.rs
crates/era-utils/tests/it/main.rs
//! Root module for test modules, so that the tests are built into a single binary. use alloy_primitives::bytes::Bytes; use futures_util::{stream, Stream, TryStreamExt}; use reqwest::{Client, IntoUrl}; use reth_era_downloader::HttpClient; use tokio_util::either::Either; // Url where the ERA1 files are hosted const 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/prune/types/src/event.rs
crates/prune/types/src/event.rs
use crate::PrunedSegmentInfo; use alloc::vec::Vec; use alloy_primitives::BlockNumber; use core::time::Duration; /// An event emitted by a pruner. #[derive(Debug, PartialEq, Eq, Clone)] pub enum PrunerEvent { /// Emitted when pruner started running. Started { /// The tip block number before pruning. ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/types/src/lib.rs
crates/prune/types/src/lib.rs
//! Commonly used types for prune usage. #![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/prune/types/src/target.rs
crates/prune/types/src/target.rs
use alloy_primitives::BlockNumber; use derive_more::Display; use thiserror::Error; use crate::{PruneCheckpoint, PruneMode, PruneSegment, ReceiptsLogPruneConfig}; /// Minimum distance from the tip necessary for the node to work correctly: /// 1. Minimum 2 epochs (32 blocks per epoch) required to handle any reorg accor...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/types/src/checkpoint.rs
crates/prune/types/src/checkpoint.rs
use crate::PruneMode; use alloy_primitives::{BlockNumber, TxNumber}; /// Saves the pruning progress of a stage. #[derive(Debug, PartialEq, Eq, Clone, Copy)] #[cfg_attr(any(test, feature = "reth-codec"), derive(reth_codecs::Compact))] #[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(compac...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/types/src/mode.rs
crates/prune/types/src/mode.rs
use crate::{segment::PrunePurpose, PruneSegment, PruneSegmentError}; use alloy_primitives::BlockNumber; /// Prune mode. #[derive(Debug, PartialEq, Eq, Clone, Copy)] #[cfg_attr(any(test, feature = "test-utils"), derive(arbitrary::Arbitrary))] #[cfg_attr(any(test, feature = "reth-codec"), derive(reth_codecs::Compact))] ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/types/src/pruner.rs
crates/prune/types/src/pruner.rs
use crate::{PruneCheckpoint, PruneMode, PruneSegment}; use alloc::vec::Vec; use alloy_primitives::{BlockNumber, TxNumber}; use derive_more::Display; /// Pruner run output. #[derive(Debug)] pub struct PrunerOutput { /// Pruning progress. pub progress: PruneProgress, /// Pruning output for each segment. ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/types/src/segment.rs
crates/prune/types/src/segment.rs
use crate::MINIMUM_PRUNING_DISTANCE; use derive_more::Display; use thiserror::Error; /// Segment of the data that can be pruned. #[derive(Debug, Display, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)] #[cfg_attr(test, derive(arbitrary::Arbitrary))] #[cfg_attr(any(test, feature = "reth-codec"), derive(reth_codecs:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/builder.rs
crates/prune/prune/src/builder.rs
use crate::{segments::SegmentSet, Pruner}; use alloy_eips::eip2718::Encodable2718; use reth_chainspec::MAINNET_PRUNE_DELETE_LIMIT; use reth_config::PruneConfig; use reth_db_api::{table::Value, transaction::DbTxMut}; use reth_exex_types::FinishedExExHeight; use reth_primitives_traits::NodePrimitives; use reth_provider::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/lib.rs
crates/prune/prune/src/lib.rs
//! Pruning 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/" )] #![cfg_attr(...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/error.rs
crates/prune/prune/src/error.rs
use reth_errors::{DatabaseError, RethError}; use reth_provider::ProviderError; use reth_prune_types::PruneSegmentError; use thiserror::Error; /// Errors that can occur during pruning. #[derive(Error, Debug)] pub enum PrunerError { #[error(transparent)] PruneSegment(#[from] PruneSegmentError), #[error("inc...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/limiter.rs
crates/prune/prune/src/limiter.rs
use reth_prune_types::{PruneInterruptReason, PruneProgress}; use std::{ num::NonZeroUsize, time::{Duration, Instant}, }; /// Limits a pruner run by either the number of entries (rows in the database) that can be deleted /// or the time it can run. #[derive(Debug, Clone, Default)] pub struct PruneLimiter { ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/metrics.rs
crates/prune/prune/src/metrics.rs
use reth_metrics::{ metrics::{Gauge, Histogram}, Metrics, }; use reth_prune_types::PruneSegment; use std::collections::HashMap; #[derive(Metrics)] #[metrics(scope = "pruner")] pub(crate) struct Metrics { /// Pruning duration pub(crate) duration_seconds: Histogram, #[metric(skip)] prune_segments...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/db_ext.rs
crates/prune/prune/src/db_ext.rs
use crate::PruneLimiter; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW, RangeWalker}, table::{Table, TableRow}, transaction::DbTxMut, DatabaseError, }; use std::{fmt::Debug, ops::RangeBounds}; use tracing::debug; pub(crate) trait DbTxPruneExt: DbTxMut { /// Prune the table for the specified pr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/pruner.rs
crates/prune/prune/src/pruner.rs
//! Support for pruning. use crate::{ segments::{PruneInput, Segment}, Metrics, PruneLimiter, PrunerError, PrunerEvent, }; use alloy_primitives::BlockNumber; use reth_exex_types::FinishedExExHeight; use reth_provider::{ DBProvider, DatabaseProviderFactory, PruneCheckpointReader, PruneCheckpointWriter, }; 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/prune/prune/src/segments/mod.rs
crates/prune/prune/src/segments/mod.rs
mod receipts; mod set; mod static_file; mod user; use crate::{PruneLimiter, PrunerError}; use alloy_primitives::{BlockNumber, TxNumber}; use reth_provider::{errors::provider::ProviderResult, BlockReader, PruneCheckpointWriter}; use reth_prune_types::{PruneCheckpoint, PruneMode, PrunePurpose, PruneSegment, SegmentOutpu...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/receipts.rs
crates/prune/prune/src/segments/receipts.rs
//! Common receipts pruning logic shared between user and static file pruning segments. //! //! - [`crate::segments::user::Receipts`] is responsible for pruning receipts according to the //! user-configured settings (for example, on a full node or with a custom prune config) //! - [`crate::segments::static_file::Rece...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/set.rs
crates/prune/prune/src/segments/set.rs
use crate::segments::{ AccountHistory, ReceiptsByLogs, Segment, SenderRecovery, StorageHistory, TransactionLookup, UserReceipts, }; use alloy_eips::eip2718::Encodable2718; use reth_db_api::{table::Value, transaction::DbTxMut}; use reth_primitives_traits::NodePrimitives; use reth_provider::{ providers::Stati...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/transaction_lookup.rs
crates/prune/prune/src/segments/user/transaction_lookup.rs
use crate::{ db_ext::DbTxPruneExt, segments::{PruneInput, Segment, SegmentOutput}, PrunerError, }; use alloy_eips::eip2718::Encodable2718; use rayon::prelude::*; use reth_db_api::{tables, transaction::DbTxMut}; use reth_provider::{BlockReader, DBProvider}; use reth_prune_types::{PruneMode, PrunePurpose, Pru...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/sender_recovery.rs
crates/prune/prune/src/segments/user/sender_recovery.rs
use crate::{ db_ext::DbTxPruneExt, segments::{PruneInput, Segment}, PrunerError, }; use reth_db_api::{tables, transaction::DbTxMut}; use reth_provider::{BlockReader, DBProvider, TransactionsProvider}; use reth_prune_types::{ PruneMode, PrunePurpose, PruneSegment, SegmentOutput, SegmentOutputCheckpoint, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/account_history.rs
crates/prune/prune/src/segments/user/account_history.rs
use crate::{ db_ext::DbTxPruneExt, segments::{user::history::prune_history_indices, PruneInput, Segment}, PrunerError, }; use itertools::Itertools; use reth_db_api::{models::ShardedKey, tables, transaction::DbTxMut}; use reth_provider::DBProvider; use reth_prune_types::{ PruneMode, PrunePurpose, PruneSe...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/history.rs
crates/prune/prune/src/segments/user/history.rs
use alloy_primitives::BlockNumber; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, models::ShardedKey, table::Table, transaction::DbTxMut, BlockNumberList, DatabaseError, RawKey, RawTable, RawValue, }; use reth_provider::DBProvider; enum PruneShardOutcome { Deleted, Updated, Unchan...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/storage_history.rs
crates/prune/prune/src/segments/user/storage_history.rs
use crate::{ db_ext::DbTxPruneExt, segments::{user::history::prune_history_indices, PruneInput, Segment, SegmentOutput}, PrunerError, }; use itertools::Itertools; use reth_db_api::{ models::{storage_sharded_key::StorageShardedKey, BlockNumberAddress}, tables, transaction::DbTxMut, }; use reth_pr...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/receipts_by_logs.rs
crates/prune/prune/src/segments/user/receipts_by_logs.rs
use crate::{ db_ext::DbTxPruneExt, segments::{PruneInput, Segment}, PrunerError, }; use alloy_consensus::TxReceipt; use reth_db_api::{table::Value, tables, transaction::DbTxMut}; use reth_primitives_traits::NodePrimitives; use reth_provider::{ BlockReader, DBProvider, NodePrimitivesProvider, PruneCheckp...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/mod.rs
crates/prune/prune/src/segments/user/mod.rs
mod account_history; mod history; mod receipts; mod receipts_by_logs; mod sender_recovery; mod storage_history; mod transaction_lookup; pub use account_history::AccountHistory; pub use receipts::Receipts; pub use receipts_by_logs::ReceiptsByLogs; pub use sender_recovery::SenderRecovery; pub use storage_history::Storag...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/user/receipts.rs
crates/prune/prune/src/segments/user/receipts.rs
use crate::{ segments::{PruneInput, Segment}, PrunerError, }; use reth_db_api::{table::Value, transaction::DbTxMut}; use reth_primitives_traits::NodePrimitives; use reth_provider::{ errors::provider::ProviderResult, BlockReader, DBProvider, NodePrimitivesProvider, PruneCheckpointWriter, TransactionsProv...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/static_file/headers.rs
crates/prune/prune/src/segments/static_file/headers.rs
use crate::{ db_ext::DbTxPruneExt, segments::{PruneInput, Segment}, PruneLimiter, PrunerError, }; use alloy_primitives::BlockNumber; use itertools::Itertools; use reth_db_api::{ cursor::{DbCursorRO, RangeWalker}, table::Value, tables, transaction::DbTxMut, }; use reth_primitives_traits::Node...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/static_file/transactions.rs
crates/prune/prune/src/segments/static_file/transactions.rs
use crate::{ db_ext::DbTxPruneExt, segments::{PruneInput, Segment}, PrunerError, }; use reth_db_api::{table::Value, tables, transaction::DbTxMut}; use reth_primitives_traits::NodePrimitives; use reth_provider::{ providers::StaticFileProvider, BlockReader, DBProvider, StaticFileProviderFactory, Trans...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/static_file/mod.rs
crates/prune/prune/src/segments/static_file/mod.rs
mod headers; mod receipts; mod transactions; pub use headers::Headers; pub use receipts::Receipts; pub use transactions::Transactions;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/prune/prune/src/segments/static_file/receipts.rs
crates/prune/prune/src/segments/static_file/receipts.rs
use crate::{ segments::{PruneInput, Segment}, PrunerError, }; use reth_db_api::{table::Value, transaction::DbTxMut}; use reth_primitives_traits::NodePrimitives; use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileProvider, BlockReader, DBProvider, PruneCheckpointWriter, StaticFil...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stateless/src/lib.rs
crates/stateless/src/lib.rs
//! Provides types and functions for stateless execution and validation of Ethereum blocks. //! //! This crate enables the verification of block execution without requiring access to a //! full node's persistent database. Instead, it relies on pre-generated "witness" data //! that proves the specific state accessed dur...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stateless/src/validation.rs
crates/stateless/src/validation.rs
use crate::{ trie::{StatelessSparseTrie, StatelessTrie}, witness_db::WitnessDatabase, ExecutionWitness, }; use alloc::{ collections::BTreeMap, fmt::Debug, string::{String, ToString}, sync::Arc, vec::Vec, }; use alloy_consensus::{BlockHeader, Header}; use alloy_primitives::{keccak256, B25...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stateless/src/witness_db.rs
crates/stateless/src/witness_db.rs
//! Provides the [`WitnessDatabase`] type, an implementation of [`reth_revm::Database`] //! specifically designed for stateless execution environments. use crate::trie::StatelessTrie; use alloc::{collections::btree_map::BTreeMap, format}; use alloy_primitives::{map::B256Map, Address, B256, U256}; use reth_errors::Prov...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/stateless/src/trie.rs
crates/stateless/src/trie.rs
use crate::validation::StatelessValidationError; use alloc::{format, vec::Vec}; use alloy_primitives::{keccak256, map::B256Map, Address, B256, U256}; use alloy_rlp::{Decodable, Encodable}; use alloy_rpc_types_debug::ExecutionWitness; use alloy_trie::{TrieAccount, EMPTY_ROOT_HASH}; use itertools::Itertools; use reth_err...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/tokio-util/src/lib.rs
crates/tokio-util/src/lib.rs
//! Event listeners #![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(not(test...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/tokio-util/src/event_sender.rs
crates/tokio-util/src/event_sender.rs
use crate::EventStream; use tokio::sync::broadcast::{self, Sender}; use tracing::trace; const DEFAULT_SIZE_BROADCAST_CHANNEL: usize = 2000; /// A bounded multi-producer, multi-consumer broadcast channel. #[derive(Debug)] pub struct EventSender<T> { /// The sender part of the broadcast channel sender: Sender<T...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/tokio-util/src/event_stream.rs
crates/tokio-util/src/event_stream.rs
//! Event streams related functionality. use std::{ pin::Pin, task::{Context, Poll}, }; use tokio_stream::Stream; use tracing::warn; /// Thin wrapper around tokio's `BroadcastStream` to allow skipping broadcast errors. #[derive(Debug)] pub struct EventStream<T> { inner: tokio_stream::wrappers::BroadcastSt...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/tokio-util/src/ratelimit.rs
crates/tokio-util/src/ratelimit.rs
//! A rate limit implementation to enforce a specific rate. use std::{ future::{poll_fn, Future}, pin::Pin, task::{Context, Poll}, time::Duration, }; use tokio::time::Sleep; /// Given a [`Rate`] this type enforces a rate limit. #[derive(Debug)] pub struct RateLimit { rate: Rate, state: State, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/debug-client/src/lib.rs
crates/consensus/debug-client/src/lib.rs
//! Debug consensus client. //! //! This is a worker that sends FCUs and new payloads by fetching recent blocks from an external //! provider like Etherscan or an RPC endpoint. This allows to quickly test the execution client //! without running a consensus node. #![doc( html_logo_url = "https://raw.githubusercont...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/debug-client/src/client.rs
crates/consensus/debug-client/src/client.rs
use alloy_consensus::Sealable; use alloy_primitives::B256; use reth_node_api::{ BuiltPayload, ConsensusEngineHandle, EngineApiMessageVersion, ExecutionPayload, NodePrimitives, PayloadTypes, }; use reth_primitives_traits::{Block, SealedBlock}; use reth_tracing::tracing::warn; use ringbuffer::{AllocRingBuffer, Ri...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/debug-client/src/providers/etherscan.rs
crates/consensus/debug-client/src/providers/etherscan.rs
use crate::BlockProvider; use alloy_consensus::BlockHeader; use alloy_eips::BlockNumberOrTag; use alloy_json_rpc::{Response, ResponsePayload}; use reqwest::Client; use reth_tracing::tracing::{debug, warn}; use serde::{de::DeserializeOwned, Serialize}; use std::{sync::Arc, time::Duration}; use tokio::{sync::mpsc, time::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/debug-client/src/providers/mod.rs
crates/consensus/debug-client/src/providers/mod.rs
mod etherscan; mod rpc; pub use etherscan::EtherscanBlockProvider; pub use rpc::RpcBlockProvider;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/debug-client/src/providers/rpc.rs
crates/consensus/debug-client/src/providers/rpc.rs
use crate::BlockProvider; use alloy_consensus::BlockHeader; use alloy_provider::{Network, Provider, ProviderBuilder}; use futures::StreamExt; use reth_node_api::Block; use reth_tracing::tracing::warn; use std::sync::Arc; use tokio::sync::mpsc::Sender; /// Block provider that fetches new blocks from an RPC endpoint usi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/common/src/lib.rs
crates/consensus/common/src/lib.rs
//! Commonly used consensus methods. #![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/consensus/common/src/validation.rs
crates/consensus/common/src/validation.rs
//! Collection of methods for block validation. use alloy_consensus::{ constants::MAXIMUM_EXTRA_DATA_SIZE, BlockHeader as _, EMPTY_OMMER_ROOT_HASH, }; use alloy_eips::{eip4844::DATA_GAS_PER_BLOB, eip7840::BlobParams}; use reth_chainspec::{EthChainSpec, EthereumHardfork, EthereumHardforks}; use reth_consensus::Cons...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/consensus/src/lib.rs
crates/consensus/consensus/src/lib.rs
//! Consensus protocol functions #![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_...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/consensus/consensus/src/noop.rs
crates/consensus/consensus/src/noop.rs
use crate::{Consensus, ConsensusError, FullConsensus, HeaderValidator}; use alloc::sync::Arc; use reth_execution_types::BlockExecutionResult; use reth_primitives_traits::{Block, NodePrimitives, RecoveredBlock, SealedBlock, SealedHeader}; /// A Consensus implementation that does nothing. #[derive(Debug, Copy, 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/crates/consensus/consensus/src/test_utils.rs
crates/consensus/consensus/src/test_utils.rs
use crate::{Consensus, ConsensusError, FullConsensus, HeaderValidator}; use core::sync::atomic::{AtomicBool, Ordering}; use reth_execution_types::BlockExecutionResult; use reth_primitives_traits::{Block, NodePrimitives, RecoveredBlock, SealedBlock, SealedHeader}; /// Consensus engine implementation for testing #[deriv...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/config/src/config.rs
crates/config/src/config.rs
//! Configuration files. use reth_network_types::{PeersConfig, SessionsConfig}; use reth_prune_types::PruneModes; use reth_stages_types::ExecutionStageThresholds; use std::{ path::{Path, PathBuf}, time::Duration, }; use url::Url; #[cfg(feature = "serde")] const EXTENSION: &str = "toml"; /// The default prune ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/config/src/lib.rs
crates/config/src/lib.rs
//! Standalone crate for Reth configuration 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.com/SeismicSystems/seismic-reth/i...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false