You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_chain_tip ("get_tip") is not known by the grin node, causing the program to error out on a healthy node.
mwixnet.rs
...
if let Err(e) = rt_handle.block_on(node.async_get_chain_tip()) {
eprintln!("Node communication failure. Is node listening?");
return Err(e.into());
};
This is the corresponding function with the "get_tip" method that is not found by the grin node. Maybe change to get_status?
Node.rs
async fn async_get_chain_tip(&self) -> Result<(u64, Hash), NodeError> {
let params = json!([]);
let tip_json = self
.async_send_request::<serde_json::Value>("get_tip", ¶ms)
.await?;
let tip =
serde_json::from_value::<Tip>(tip_json).map_err(NodeError::DecodeResponseError)?;
Ok((
tip.height,
Hash::from_hex(tip.last_block_pushed.as_str()).unwrap(),
))
}
The text was updated successfully, but these errors were encountered:
syntaxjak
changed the title
Node API health check using a method not found by the Grin node in mwixnet.rs
Node API health check using a method not found by the Grin node.
Dec 12, 2024
get_chain_tip ("get_tip") is not known by the grin node, causing the program to error out on a healthy node.
mwixnet.rs
...
This is the corresponding function with the "get_tip" method that is not found by the grin node. Maybe change to get_status?
Node.rs
The text was updated successfully, but these errors were encountered: