Chore/cosmrs update (#862)
* Re-enabled `get_tx` endpoint * Updated cosmrs to 0.3 and prost to 0.9 * [ci skip] Generate TS types Co-authored-by: jstuczyn <jstuczyn@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e1d7772a78
commit
7e1c3b4501
@@ -213,7 +213,7 @@ impl<C> Client<C> {
|
||||
match res {
|
||||
Ok(_) => Ok(()),
|
||||
Err(err) => {
|
||||
if err.is_tendermint_timeout() {
|
||||
if err.is_tendermint_response_timeout() {
|
||||
// wait until we're sure we're into the next block (remember we're holding the lock)
|
||||
sleep(Duration::from_secs(11)).await;
|
||||
let curr_sequence = client_guard.nymd.account_sequence().await?;
|
||||
@@ -281,7 +281,7 @@ impl<C> Client<C> {
|
||||
match res {
|
||||
Ok(_) => Ok(()),
|
||||
Err(err) => {
|
||||
if err.is_tendermint_timeout() {
|
||||
if err.is_tendermint_response_timeout() {
|
||||
// wait until we're sure we're into the next block (remember we're holding the lock)
|
||||
sleep(Duration::from_secs(11)).await;
|
||||
let curr_sequence = client_guard.nymd.account_sequence().await?;
|
||||
|
||||
@@ -50,7 +50,7 @@ impl RewardingError {
|
||||
pub fn is_tendermint_duplicate(&self) -> bool {
|
||||
match &self {
|
||||
RewardingError::ValidatorClientError(ValidatorClientError::NymdError(nymd_err)) => {
|
||||
nymd_err.is_tendermint_duplicate()
|
||||
nymd_err.is_tendermint_response_duplicate()
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user