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
EDIT: after closer examination, i have no idea why its not working, the ENDPOINT /v2/foreign in node.rs, doesn't seem to be the correct endpoint for the get_tip method. Maybe use v1/chain instead?
get_chain_tip ("get_tip") is not known by the grin node, or something, is causing the program to error out during the Node API health check 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
syntaxjak
changed the title
Node API health check using a method not found by the Grin node.
Node API health check error's out on a healthy Grin node.
Dec 13, 2024
EDIT: after closer examination, i have no idea why its not working, the ENDPOINT /v2/foreign in node.rs, doesn't seem to be the correct endpoint for the get_tip method. Maybe use v1/chain instead?
get_chain_tip ("get_tip") is not known by the grin node, or something, is causing the program to error out during the Node API health check 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: