mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-22 13:53:40 +00:00
More preparations for testnet explorer
This commit is contained in:
@@ -93,6 +93,9 @@ pub async fn get_status(dashboard: Arc<Mutex<Dashboard>>) -> Result<(), Error> {
|
||||
data.proto_ver = resp["result"]["Ok"]["protocol_version"].to_string();
|
||||
}
|
||||
|
||||
// Also set cg_api value
|
||||
data.cg_api = CONFIG.coingecko_api.clone();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -153,9 +156,6 @@ pub async fn get_market(dashboard: Arc<Mutex<Dashboard>>) -> Result<(), Error> {
|
||||
|
||||
let mut data = dashboard.lock().unwrap();
|
||||
|
||||
// Save the setting into Dashboard structure for later use
|
||||
data.cg_api = CONFIG.coingecko_api.clone();
|
||||
|
||||
if data.height.is_empty() == false {
|
||||
// Calculating coin supply
|
||||
// Adding +1 as block index starts with 0
|
||||
|
Reference in New Issue
Block a user