mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-22 05:43:42 +00:00
More preparations for testnet explorer
This commit is contained in:
@@ -155,7 +155,7 @@ fn search(input: &str) -> Either<Template, Redirect> {
|
||||
} else if input.len() == 64 {
|
||||
return Either::Right(Redirect::to(uri!(block_header_by_hash(input))));
|
||||
|
||||
// Kernel hash
|
||||
// Kernel
|
||||
} else if input.len() == 66 {
|
||||
return Either::Right(Redirect::to(uri!(kernel(input))));
|
||||
}
|
||||
|
@@ -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