Skip to content

Commit

Permalink
fix base node direct connection
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Feb 24, 2025
1 parent 32e6082 commit 9d270b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion applications/minotari_merge_mining_proxy/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Default for MergeMiningProxyConfig {
range_proof_type: RangeProofType::RevealedValue,
p2pool_enabled: false,
monerod_fallback: Default::default(),
monerod_connection_timeout: Duration::from_secs(105),
monerod_connection_timeout: Duration::from_secs(2),
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions applications/minotari_merge_mining_proxy/src/proxy/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ impl InnerService {
details: "get_tip_info failed".to_string(),
}
})?;
let res = result.into_inner();

base_node_height = res.metadata.as_ref().map(|m| m.best_block_height).unwrap_or_default();
base_node_hash = res
.metadata
.as_ref()
.map(|m| m.best_block_hash.clone())
.unwrap_or_default();
}
info!(
target: LOG_TARGET,
Expand Down

0 comments on commit 9d270b3

Please sign in to comment.