Compare commits

...

1 Commits

Author SHA1 Message Date
Roman Zeyde
1c7730157f
Remove unused --tx-cache-size flag 2018-11-22 11:33:27 +02:00

View File

@ -27,7 +27,6 @@ pub struct Config {
pub jsonrpc_import: bool,
pub index_batch_size: usize,
pub bulk_index_threads: usize,
pub tx_cache_size: usize,
}
impl Config {
@ -110,12 +109,6 @@ impl Config {
.help("Number of threads used for bulk indexing (default: use the # of CPUs)")
.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();
let network_name = m.value_of("network").unwrap_or("mainnet");
@ -210,7 +203,6 @@ impl Config {
jsonrpc_import: m.is_present("jsonrpc_import"),
index_batch_size: value_t_or_exit!(m, "index_batch_size", usize),
bulk_index_threads,
tx_cache_size: value_t_or_exit!(m, "tx_cache_size", usize),
};
eprintln!("{:?}", config);
config