Add cli param to limit database cache size (#1261)

* Add cli param to limit datbase cache size

* fixing tests
This commit is contained in:
Benjamin Kampmann
2018-12-13 12:32:41 +01:00
committed by GitHub
parent 8606595a6d
commit bd2a206e40
5 changed files with 13 additions and 2 deletions
+4
View File
@@ -45,6 +45,10 @@ pub struct CoreParams {
#[structopt(long = "light")]
light: bool,
/// Limit the memory the database cache can use
#[structopt(long = "db-cache", value_name = "MiB")]
database_cache_size: Option<u32>,
/// Listen on this multiaddress
#[structopt(long = "listen-addr", value_name = "LISTEN_ADDR")]
listen_addr: Vec<String>,