Dataset Viewer
Auto-converted to Parquet Duplicate
filePath
stringlengths
19
70
prefix
stringlengths
0
7.99k
middle
stringlengths
10
14.8k
suffix
stringlengths
0
8k
nodeType
stringclasses
10 values
examples/custom-node-components/src/main.rs
//! This example shows how to configure custom components for a reth node. #![warn(unused_crate_dependencies)] use reth_ethereum::{ chainspec::ChainSpec, cli::interface::Cli, evm::primitives::ConfigureEvm, node::{ api::{FullNodeTypes, NodeTypes}, builder::{components::PoolBuilder, Buil...
use reth_tracing::tracing::{debug, info};
fn main() { Cli::parse_args() .run(async move |builder, _| { let handle = builder // use the default ethereum node types .with_types::<EthereumNode>() // Configure the components of the node // use default ethereum components but u...
Use
examples/custom-node-components/src/main.rs
//! This example shows how to configure custom components for a reth node. #![warn(unused_crate_dependencies)] use reth_ethereum::{ chainspec::ChainSpec, cli::interface::Cli, evm::primitives::ConfigureEvm, node::{ api::{FullNodeTypes, NodeTypes}, builder::{components::PoolBuilder, Buil...
/// A custom pool builder #[derive(Debug, Clone, Default)] #[non_exhaustive] pub struct CustomPoolBuilder { /// Use custom pool config pool_config: PoolConfig, }
/// Implement the [`PoolBuilder`] trait for the custom pool builder /// /// This will be used to build the transaction pool and its maintenance tasks during launch. impl<Node, Evm> PoolBuilder<Node, Evm> for CustomPoolBuilder where Node: FullNodeTypes<Types: NodeTypes<ChainSpec = ChainSpec, Primitives = EthPrimiti...
Struct
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions.
use alloy_consensus::BlockHeader;
use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader;
use alloy_genesis::GenesisAccount;
use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::Stor...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount;
use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, };
use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::StorageShardedKey, AccountBeforeTx, BlockNumberAddress, IntegerList, ShardedKey, }, tables, transacti...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, };
use reth_chainspec::EthChainSpec;
use reth_codecs::Compact; use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::StorageShardedKey, AccountBeforeTx, BlockNumberAddress, IntegerList, ShardedKey, }, tables, transaction::DbTxMut, DatabaseError, };...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec;
use reth_codecs::Compact;
use reth_config::config::EtlConfig; use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::StorageShardedKey, AccountBeforeTx, BlockNumberAddress, IntegerList, ShardedKey, }, tables, transaction::DbTxMut, DatabaseError, }; use reth_etl::Collector; ...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact;
use reth_config::config::EtlConfig;
use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::StorageShardedKey, AccountBeforeTx, BlockNumberAddress, IntegerList, ShardedKey, }, tables, transaction::DbTxMut, DatabaseError, }; use reth_etl::Collector; use reth_execution_errors::StateRoot...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_db_api::{ cursor::{DbCursorRW, DbDupCursorRW}, models::{ storage_sharded_key::StorageShardedKey, AccountBeforeTx, BlockNumberAddress, IntegerList, ShardedKey, }, tables, transaction::DbTxMut, DatabaseError, };
use reth_etl::Collector; use reth_execution_errors::StateRootError; use reth_primitives_traits::{ Account, Bytecode, GotExpected, NodePrimitives, SealedHeader, StorageEntry, }; use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileWriter, BlockHashReader, BlockNumReader, BundleStateIni...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_etl::Collector;
use reth_execution_errors::StateRootError; use reth_primitives_traits::{ Account, Bytecode, GotExpected, NodePrimitives, SealedHeader, StorageEntry, }; use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileWriter, BlockHashReader, BlockNumReader, BundleStateInit, ChainSpecProvider, DBP...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_execution_errors::StateRootError;
use reth_primitives_traits::{ Account, Bytecode, GotExpected, NodePrimitives, SealedHeader, StorageEntry, }; use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileWriter, BlockHashReader, BlockNumReader, BundleStateInit, ChainSpecProvider, DBProvider, DatabaseProviderFactory, Execution...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_primitives_traits::{ Account, Bytecode, GotExpected, NodePrimitives, SealedHeader, StorageEntry, };
use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileWriter, BlockHashReader, BlockNumReader, BundleStateInit, ChainSpecProvider, DBProvider, DatabaseProviderFactory, ExecutionOutcome, HashingWriter, HeaderProvider, HistoryWriter, MetadataProvider, MetadataWriter, NodePrimitivesPr...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_provider::{ errors::provider::ProviderResult, providers::StaticFileWriter, BlockHashReader, BlockNumReader, BundleStateInit, ChainSpecProvider, DBProvider, DatabaseProviderFactory, ExecutionOutcome, HashingWriter, HeaderProvider, HistoryWriter, MetadataProvider, MetadataWriter, NodePrimitivesPr...
use reth_stages_types::{StageCheckpoint, StageId}; use reth_static_file_types::StaticFileSegment; use reth_trie::{ prefix_set::TriePrefixSets, IntermediateStateRootState, StateRoot as StateRootComputer, StateRootProgress, }; use reth_trie_db::DatabaseStateRoot; type DbStateRoot<'a, TX, A> = StateRootComputer< ...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_stages_types::{StageCheckpoint, StageId};
use reth_static_file_types::StaticFileSegment; use reth_trie::{ prefix_set::TriePrefixSets, IntermediateStateRootState, StateRoot as StateRootComputer, StateRootProgress, }; use reth_trie_db::DatabaseStateRoot; type DbStateRoot<'a, TX, A> = StateRootComputer< reth_trie_db::DatabaseTrieCursorFactory<&'a TX,...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_static_file_types::StaticFileSegment;
use reth_trie::{ prefix_set::TriePrefixSets, IntermediateStateRootState, StateRoot as StateRootComputer, StateRootProgress, }; use reth_trie_db::DatabaseStateRoot; type DbStateRoot<'a, TX, A> = StateRootComputer< reth_trie_db::DatabaseTrieCursorFactory<&'a TX, A>, reth_trie_db::DatabaseHashedCursorFact...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_trie::{ prefix_set::TriePrefixSets, IntermediateStateRootState, StateRoot as StateRootComputer, StateRootProgress, };
use reth_trie_db::DatabaseStateRoot; type DbStateRoot<'a, TX, A> = StateRootComputer< reth_trie_db::DatabaseTrieCursorFactory<&'a TX, A>, reth_trie_db::DatabaseHashedCursorFactory<&'a TX>, >; use serde::{Deserialize, Serialize}; use std::io::BufRead; use tracing::{debug, error, info, trace, warn}; pub use re...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use reth_trie_db::DatabaseStateRoot;
type DbStateRoot<'a, TX, A> = StateRootComputer< reth_trie_db::DatabaseTrieCursorFactory<&'a TX, A>, reth_trie_db::DatabaseHashedCursorFactory<&'a TX>, >; use serde::{Deserialize, Serialize}; use std::io::BufRead; use tracing::{debug, error, info, trace, warn}; pub use reth_provider::init::{ insert_accou...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
type DbStateRoot<'a, TX, A> = StateRootComputer< reth_trie_db::DatabaseTrieCursorFactory<&'a TX, A>, reth_trie_db::DatabaseHashedCursorFactory<&'a TX>, >;
use serde::{Deserialize, Serialize}; use std::io::BufRead; use tracing::{debug, error, info, trace, warn}; pub use reth_provider::init::{ insert_account_history, insert_genesis_account_history, insert_genesis_history, insert_genesis_storage_history, insert_history, insert_storage_history, }; /// Default soft...
Other
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use serde::{Deserialize, Serialize};
use std::io::BufRead; use tracing::{debug, error, info, trace, warn}; pub use reth_provider::init::{ insert_account_history, insert_genesis_account_history, insert_genesis_history, insert_genesis_storage_history, insert_history, insert_storage_history, }; /// Default soft limit for number of bytes to read fro...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use std::io::BufRead;
use tracing::{debug, error, info, trace, warn}; pub use reth_provider::init::{ insert_account_history, insert_genesis_account_history, insert_genesis_history, insert_genesis_storage_history, insert_history, insert_storage_history, }; /// Default soft limit for number of bytes to read from state dump file, bef...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
use tracing::{debug, error, info, trace, warn};
pub use reth_provider::init::{ insert_account_history, insert_genesis_account_history, insert_genesis_history, insert_genesis_storage_history, insert_history, insert_storage_history, }; /// Default soft limit for number of bytes to read from state dump file, before inserting into /// database. /// /// Default...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
pub use reth_provider::init::{ insert_account_history, insert_genesis_account_history, insert_genesis_history, insert_genesis_storage_history, insert_history, insert_storage_history, };
/// Default soft limit for number of bytes to read from state dump file, before inserting into /// database. /// /// Default is 1 GB. pub const DEFAULT_SOFT_LIMIT_BYTE_LEN_ACCOUNTS_CHUNK: usize = 1_000_000_000; /// Soft limit for the number of flushed updates after which to log progress summary. const SOFT_LIMIT_COUN...
Use
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
/// Default soft limit for number of bytes to read from state dump file, before inserting into /// database. /// /// Default is 1 GB. pub const DEFAULT_SOFT_LIMIT_BYTE_LEN_ACCOUNTS_CHUNK: usize = 1_000_000_000;
/// Soft limit for the number of flushed updates after which to log progress summary. const SOFT_LIMIT_COUNT_FLUSHED_UPDATES: usize = 1_000_000; /// Max number of storage "units" (1 per account + 1 per storage slot) before committing /// the current MDBX transaction and opening a new one. This bounds dirty page accum...
Const
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
/// Soft limit for the number of flushed updates after which to log progress summary. const SOFT_LIMIT_COUNT_FLUSHED_UPDATES: usize = 1_000_000;
/// Max number of storage "units" (1 per account + 1 per storage slot) before committing /// the current MDBX transaction and opening a new one. This bounds dirty page accumulation /// and prevents OOM on large state imports. const STORAGE_COMMIT_THRESHOLD: usize = 100_000; /// Max number of trie updates retained bef...
Const
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
/// Max number of storage "units" (1 per account + 1 per storage slot) before committing /// the current MDBX transaction and opening a new one. This bounds dirty page accumulation /// and prevents OOM on large state imports. const STORAGE_COMMIT_THRESHOLD: usize = 100_000;
/// Max number of trie updates retained before init-state state root computation commits progress. const STATE_ROOT_COMMIT_THRESHOLD: u64 = 25_000; /// Storage initialization error type. #[derive(Debug, thiserror::Error, Clone)] pub enum InitStorageError { /// Genesis header found on static files but the database...
Const
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_genesis::GenesisAccount; use alloy_primitives::{ keccak256, map::{AddressMap, B256Map, B256Set, HashMap}, Address, B256, U256, }; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::confi...
/// Max number of trie updates retained before init-state state root computation commits progress. const STATE_ROOT_COMMIT_THRESHOLD: u64 = 25_000;
/// Storage initialization error type. #[derive(Debug, thiserror::Error, Clone)] pub enum InitStorageError { /// Genesis header found on static files but the database is empty. #[error( "static files found, but the database is uninitialized. If attempting to re-syncing, delete both." )] Uniniti...
Const
End of preview. Expand in Data Studio

reth FIM dataset

AST-mined Fill-in-the-Middle samples from the reth Rust codebase. File-level 98/2 split (no file in both). reth_train.jsonl (46,769) / reth_test.jsonl (870). Each line: {filePath, prefix, middle, suffix, nodeType}. Used to train deepseek-coder-6.7b-fim-reth-v1.

Downloads last month
42