solana vote-account
/solana stake-account
now works with RPC servers without --enable-rpc-transaction-history
(bp #12826) (#12849)
* Implementation-defined RPC server errors are now accessible to client/ users (cherry picked from commit247228ee61
) * Cleanly handle RPC servers that don't have --enable-rpc-transaction-history enabled (cherry picked from commit14d793b22c
) Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -140,8 +140,10 @@ impl RpcRequest {
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum RpcError {
|
||||
#[error("rpc request error: {0}")]
|
||||
#[error("RPC request error: {0}")]
|
||||
RpcRequestError(String),
|
||||
#[error("RPC response error {code}: {message}")]
|
||||
RpcResponseError { code: i64, message: String },
|
||||
#[error("parse error: expected {0}")]
|
||||
ParseError(String), /* "expected" */
|
||||
// Anything in a `ForUser` needs to die. The caller should be
|
||||
|
Reference in New Issue
Block a user