We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff31d5 commit e3a5538Copy full SHA for e3a5538
packages/rs-sdk/src/error.rs
@@ -5,7 +5,7 @@ use std::time::Duration;
5
use dapi_grpc::mock::Mockable;
6
use dpp::version::PlatformVersionError;
7
use dpp::ProtocolError;
8
-use rs_dapi_client::DapiClientError;
+use rs_dapi_client::{CanRetry, DapiClientError};
9
10
pub use drive_proof_verifier::error::ContextProviderError;
11
@@ -97,3 +97,13 @@ impl From<PlatformVersionError> for Error {
97
Self::Protocol(value.into())
98
}
99
100
+impl CanRetry for Error {
101
+ /// Returns true if the operation can be retried, false means it's unspecified
102
+ /// False means
103
+ fn can_retry(&self) -> bool {
104
+ matches!(
105
+ self,
106
+ Error::CoreLockedHeightNotYetAvailable(_, _) | Error::QuorumNotFound { .. }
107
+ )
108
+ }
109
+}
0 commit comments