xpub related update
This commit is contained in:
@@ -349,7 +349,7 @@ fn main(){
|
||||
env_logger::init();
|
||||
let mut cfg: MyConfig = match env::var("BAL_PUSHER_CONFIG_FILE") {
|
||||
Ok(value) => {
|
||||
match confy::load_path(value.to_string()){
|
||||
match confy::load_path(&value){
|
||||
Ok(val) => {
|
||||
info!("The configuration file path is: {:#?}", value);
|
||||
val
|
||||
@@ -393,7 +393,7 @@ fn main(){
|
||||
|
||||
socket.set_subscribe(b"").unwrap();
|
||||
|
||||
let _ = main_result(&cfg,&network_params);
|
||||
let _ = main_result(&cfg,network_params);
|
||||
info!("waiting new blocks..");
|
||||
let mut last_seq:Vec<u8>=[0;4].to_vec();
|
||||
loop {
|
||||
@@ -414,7 +414,7 @@ fn main(){
|
||||
if topic == b"hashblock" {
|
||||
info!("NEW BLOCK{}", hex::encode(body));
|
||||
//let cfg = cfg.clone();
|
||||
let _ = main_result(&cfg,&network_params);
|
||||
let _ = main_result(&cfg,network_params);
|
||||
}
|
||||
thread::sleep(Duration::from_millis(100)); // Sleep for 100ms
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user