prevent unwrap in get_block_range

This commit is contained in:
Deniod
2024-01-13 22:12:32 +01:00
parent feb26dbdfb
commit c8948af2fc
2 changed files with 45 additions and 32 deletions

View File

@@ -1503,8 +1503,7 @@ pub fn start_mempool_monitor(lc: Arc<LightClient>) -> Result<(), String> {
let block_times = block_times.clone();
pool.execute(move || {
println!("Fetching transactions for address: {}", address_clone);
let r = fetch_transparent_txids(
&server_uri,
address,
@@ -1545,7 +1544,7 @@ pub fn start_mempool_monitor(lc: Arc<LightClient>) -> Result<(), String> {
);
match ctx.send(r) {
Ok(_) => println!("Successfully sent data for address: {}", address_clone),
Ok(_) => info!("Successfully sent data for address: {}", address_clone),
Err(e) => println!("Failed to send data for address: {}: {:?}", address_clone, e),
}
});