Add wallet birthday
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user