Small fix to chain tip check for send

This commit is contained in:
Ignotus Peverell
2017-10-30 21:35:43 -04:00
parent e45593b1db
commit 283b846243
+1 -1
View File
@@ -122,6 +122,6 @@ pub fn refresh_outputs(
}
pub fn get_tip_from_node(config: &WalletConfig) -> Result<api::Tip, Error> {
let url = format!("{}/v1/chain/1", config.check_node_api_http_addr);
let url = format!("{}/v2/chain", config.check_node_api_http_addr);
api::client::get::<api::Tip>(url.as_str()).map_err(|e| Error::Node(e))
}