xpub related update

This commit is contained in:
bitcoinafterlife
2025-05-22 19:41:05 -04:00
parent 793b6dccf0
commit 713eb8fbaa
5 changed files with 103 additions and 98 deletions

View File

@@ -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
}