Add wallet birthday

This commit is contained in:
Aditya Kulkarni
2019-09-26 11:30:34 -07:00
parent 0ab0ad4050
commit f78c3fa48f
4 changed files with 61 additions and 22 deletions

View File

@@ -58,12 +58,7 @@ pub fn main() {
consensus_branch_id : info.consensus_branch_id,
};
let lightclient = match LightClient::new(seed, &config) {
Ok(lc) => Arc::new(lc),
Err(e) => { eprintln!("Failed to start wallet. Error was:\n{}", e); return; }
};
// Configure logging first.
// Configure logging first.
let logfile = FileAppender::builder()
.encoder(Box::new(PatternEncoder::new("{l} -{d(%Y-%m-%d %H:%M:%S)}- {m}\n")))
.build(config.get_log_path()).unwrap();
@@ -80,6 +75,12 @@ pub fn main() {
info!("Starting ZecLite CLI");
info!("Light Client config {:?}", config);
let lightclient = match LightClient::new(seed, &config, info.block_height) {
Ok(lc) => Arc::new(lc),
Err(e) => { eprintln!("Failed to start wallet. Error was:\n{}", e); return; }
};
// At startup, run a sync
let sync_update = lightclient.do_sync(true);
println!("{}", sync_update);