This commit is contained in:
shuoer86
2023-10-16 16:01:01 +08:00
committed by GitHub
parent 91c4360c3c
commit 19f38ca3aa
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ fn follow_new_best_sets_best_after_it_is_imported() {
block_import_params.fork_choice = Some(ForkChoiceStrategy::Custom(false));
block_import_params.body = Some(body);
// Now import the unkown block to make it "known"
// Now import the unknown block to make it "known"
client.import_block(block_import_params).await.unwrap();
loop {
@@ -41,7 +41,7 @@ pub type RelayChainResult<T> = Result<T, RelayChainError>;
#[derive(thiserror::Error, Debug)]
pub enum RelayChainError {
#[error("Error occured while calling relay chain runtime: {0}")]
#[error("Error occurred while calling relay chain runtime: {0}")]
ApiError(#[from] ApiError),
#[error("Timeout while waiting for relay-chain block `{0}` to be imported.")]
WaitTimeout(PHash),
@@ -53,7 +53,7 @@ pub enum RelayChainError {
WaitBlockchainError(PHash, sp_blockchain::Error),
#[error("Blockchain returned an error: {0}")]
BlockchainError(#[from] sp_blockchain::Error),
#[error("State machine error occured: {0}")]
#[error("State machine error occurred: {0}")]
StateMachineError(Box<dyn sp_state_machine::Error>),
#[error("Unable to call RPC method '{0}'")]
RpcCallError(String),
@@ -67,7 +67,7 @@ pub enum RelayChainError {
Application(#[from] Box<dyn std::error::Error + Send + Sync + 'static>),
#[error("Prometheus error: {0}")]
PrometheusError(#[from] PrometheusError),
#[error("Unspecified error occured: {0}")]
#[error("Unspecified error occurred: {0}")]
GenericError(String),
}
@@ -48,7 +48,7 @@ const MAX_SUBSCRIPTIONS: u32 = 64;
#[derive(thiserror::Error, Debug)]
enum LightClientError {
#[error("Error occured while executing smoldot request: {0}")]
#[error("Error occurred while executing smoldot request: {0}")]
SmoldotError(String),
#[error("Nothing returned from json_rpc_responses")]
EmptyResult,