Struct blocks_iterator::Config [−][src]
pub struct Config {
pub blocks_dir: PathBuf,
pub network: Network,
pub skip_prevout: bool,
pub max_reorg: u8,
}Configuration parameters, most important the bitcoin blocks directory
Fields
blocks_dir: PathBufBlocks directory (containing blocks*.dat)
network: NetworkNetwork (bitcoin, testnet, regtest, signet)
skip_prevout: boolSkip calculation of previous outputs, it’s faster and it uses much less memory however make it impossible calculate fees or access tx input previous scripts
max_reorg: u8Maximum length of a reorg allowed, during reordering send block to the next step only
if it has max_reorg following blocks. Higher is more conservative, while lower faster.
When parsing testnet blocks, it may be necessary to increase this a lot
Trait Implementations
impl StructOpt for Config[src]
impl StructOpt for Config[src]fn clap<'a, 'b>() -> App<'a, 'b>[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self[src]
pub fn from_args() -> Self[src]
pub fn from_args_safe() -> Result<Self, Error>[src]
pub fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
pub fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Config[src]
impl StructOptInternal for Config[src]fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>[src]
fn is_subcommand() -> bool[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
Auto Trait Implementations
impl RefUnwindSafe for Config
impl RefUnwindSafe for Configimpl UnwindSafe for Config
impl UnwindSafe for Config