Feature/default values (#700)
* Put endpoints and contract address in one place * Put common ports in one place * Split cache version from route * Share validator-api port value between server and client * Put BECH32 prefix in defaults * Put DENOM in defaults * Put network monitor address in defaults * Fix clippy * Fix another clippy + tests import of DENOM
This commit is contained in:
committed by
GitHub
parent
2354828481
commit
18f5d4084d
Vendored
+5
-3
@@ -10,6 +10,7 @@ use std::sync::Arc;
|
||||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||
use tokio::sync::RwLock;
|
||||
use tokio::time;
|
||||
use validator_client::validator_api::VALIDATOR_API_CACHE_VERSION;
|
||||
use validator_client::Client;
|
||||
|
||||
pub(crate) mod routes;
|
||||
@@ -111,9 +112,10 @@ impl ValidatorCache {
|
||||
|
||||
pub fn stage() -> AdHoc {
|
||||
AdHoc::on_ignite("Validator Cache Stage", |rocket| async {
|
||||
rocket
|
||||
.manage(Self::new())
|
||||
.mount("/v1", routes![routes::get_mixnodes, routes::get_gateways])
|
||||
rocket.manage(Self::new()).mount(
|
||||
VALIDATOR_API_CACHE_VERSION,
|
||||
routes![routes::get_mixnodes, routes::get_gateways],
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user