File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,7 @@ use light_compressed_account::indexer_event::event::{
6
6
BatchPublicTransactionEvent , PublicTransactionEvent ,
7
7
} ;
8
8
use solana_client:: rpc_config:: RpcSendTransactionConfig ;
9
- use solana_program:: {
10
- clock:: Slot ,
11
- instruction:: { Instruction , InstructionError } ,
12
- } ;
9
+ use solana_program:: { clock:: Slot , instruction:: Instruction } ;
13
10
use solana_sdk:: {
14
11
account:: { Account , AccountSharedData } ,
15
12
commitment_config:: CommitmentConfig ,
@@ -33,11 +30,8 @@ pub trait RpcConnection: Send + Sync + Debug + 'static {
33
30
34
31
fn should_retry ( & self , error : & RpcError ) -> bool {
35
32
match error {
36
- RpcError :: TransactionError ( TransactionError :: InstructionError (
37
- _,
38
- InstructionError :: Custom ( 6004 ) ,
39
- ) ) => {
40
- // Don't retry ForesterNotEligible error
33
+ RpcError :: TransactionError ( TransactionError :: InstructionError ( _, _) ) => {
34
+ // Don't retry failing transactions.
41
35
false
42
36
}
43
37
_ => true ,
You can’t perform that action at this time.
0 commit comments