Compare commits
1 Commits
mempool
...
remove-tx-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c7730157f |
@ -27,7 +27,6 @@ pub struct Config {
|
|||||||
pub jsonrpc_import: bool,
|
pub jsonrpc_import: bool,
|
||||||
pub index_batch_size: usize,
|
pub index_batch_size: usize,
|
||||||
pub bulk_index_threads: usize,
|
pub bulk_index_threads: usize,
|
||||||
pub tx_cache_size: usize,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
@ -110,12 +109,6 @@ impl Config {
|
|||||||
.help("Number of threads used for bulk indexing (default: use the # of CPUs)")
|
.help("Number of threads used for bulk indexing (default: use the # of CPUs)")
|
||||||
.default_value("0")
|
.default_value("0")
|
||||||
)
|
)
|
||||||
.arg(
|
|
||||||
Arg::with_name("tx_cache_size")
|
|
||||||
.long("tx-cache-size")
|
|
||||||
.help("Number of transactions to keep in for query LRU cache")
|
|
||||||
.default_value("10000") // should be enough for a small wallet.
|
|
||||||
)
|
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let network_name = m.value_of("network").unwrap_or("mainnet");
|
let network_name = m.value_of("network").unwrap_or("mainnet");
|
||||||
@ -210,7 +203,6 @@ impl Config {
|
|||||||
jsonrpc_import: m.is_present("jsonrpc_import"),
|
jsonrpc_import: m.is_present("jsonrpc_import"),
|
||||||
index_batch_size: value_t_or_exit!(m, "index_batch_size", usize),
|
index_batch_size: value_t_or_exit!(m, "index_batch_size", usize),
|
||||||
bulk_index_threads,
|
bulk_index_threads,
|
||||||
tx_cache_size: value_t_or_exit!(m, "tx_cache_size", usize),
|
|
||||||
};
|
};
|
||||||
eprintln!("{:?}", config);
|
eprintln!("{:?}", config);
|
||||||
config
|
config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user