Skip to content

Commit

Permalink
refactor: rename latest to finalized
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
  • Loading branch information
gregdhill committed Oct 19, 2022
1 parent cbc7e19 commit 40e055a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion faucet/src/http.rs
Expand Up @@ -59,7 +59,7 @@ fn handle_resp<T: Encode>(resp: Result<T, Error>) -> Result<Value, JsonRpcError>
}

async fn _system_health(parachain_rpc: &InterBtcParachain) -> Result<(), Error> {
match timeout(HEALTH_DURATION, parachain_rpc.get_latest_block_hash()).await {
match timeout(HEALTH_DURATION, parachain_rpc.get_finalized_block_hash()).await {
Err(err) => Err(Error::RuntimeError(RuntimeError::from(err))),
_ => Ok(()),
}
Expand Down

0 comments on commit 40e055a

Please sign in to comment.