forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UX improvement in relayer (informalsystems#541)
* Avoid unwraps in client txs. Better LightClient errors. * Avoided unwrap calls in tx raw commands * Tagged relayer RPC error with the culprit IP address. * Replaced start with v0 * Introduced logging levels. WIP: remove status_ calls * Updated the sample config file * Adapted keys commands to JSON output * Transition to tracing macros & JSON outputs * Changelog * Added operation instructions. * Simplified Output usage; h/t Romain's suggestions. * Better err message for client consensus query
- Loading branch information
Showing
32 changed files
with
543 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
use crate::prelude::*; | ||
|
||
use abscissa_core::{Command, Options, Runnable}; | ||
|
||
use crate::conclude::Output; | ||
use crate::prelude::*; | ||
|
||
#[derive(Command, Debug, Options)] | ||
pub struct ValidateCmd {} | ||
|
||
impl Runnable for ValidateCmd { | ||
/// Validate the loaded configuration. | ||
fn run(&self) { | ||
let config = app_config(); | ||
status_ok!("Loaded configuration:", "{:#?}", *config); | ||
info!("Loaded configuration: {:?}", *config); | ||
|
||
// TODO: Validate configuration | ||
|
||
Output::with_success().exit(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.