Skip to content

Commit

Permalink
Add supply info endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Nov 16, 2024
1 parent 6cf8c61 commit b371ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions althea-info-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn get_total_liquid_supply() -> impl Responder {
} else {
error!("Invalid supply data, got total liquid supply of {:#?}", v);
HttpResponse::InternalServerError()
.json("Invalid supply data, Gravity fullnode is stale")
.json("Invalid supply data, Althea fullnode is stale")
}
}
None => HttpResponse::InternalServerError()
Expand All @@ -70,7 +70,7 @@ async fn get_all_supply_info() -> impl Responder {
} else {
error!("Invalid supply data, got total liquid supply of {:#?}", v);
HttpResponse::InternalServerError()
.json("Invalid supply data, Gravity fullnode is stale")
.json("Invalid supply data, Althea fullnode is stale")
}
}
None => HttpResponse::InternalServerError()
Expand All @@ -95,6 +95,7 @@ async fn main() -> std::io::Result<()> {
)
.service(get_total_supply)
.service(get_total_liquid_supply)
.service(get_all_supply_info)
});

let info_server = if SSL {
Expand Down

0 comments on commit b371ff7

Please sign in to comment.