@@ -42,7 +42,7 @@ pub struct PackedTransactionWithTasks<T: Send + Clone> {
4242 pub instructions : Vec < Instruction > ,
4343 pub tasks : Vec < TransactionTask < T > > ,
4444 pub fee : u64 ,
45- pub resign_count : u32 ,
45+ pub re_sign_count : u32 ,
4646}
4747
4848#[ derive( Debug , Clone ) ]
@@ -67,7 +67,7 @@ pub struct TransactionSender<T: Send + Clone + Sync> {
6767 tpu_client : Option < QuicTpuClient > ,
6868 result_tx : Sender < CompletedTransactionTask < T > > ,
6969 payer : Arc < Keypair > ,
70- max_resign_count : u32 ,
70+ max_re_sign_count : u32 ,
7171}
7272
7373pub async fn spawn_background_tasks (
@@ -107,7 +107,7 @@ impl<T: Send + Clone + Sync> TransactionSender<T> {
107107 ws_url : String ,
108108 payer : Arc < Keypair > ,
109109 result_tx : Sender < CompletedTransactionTask < T > > ,
110- max_resign_count : u32 ,
110+ max_re_sign_count : u32 ,
111111 ) -> Result < Self , Error > {
112112 // Initialize blockhash data
113113 let ( blockhash, last_valid_block_height) = rpc_client
@@ -141,7 +141,7 @@ impl<T: Send + Clone + Sync> TransactionSender<T> {
141141 tpu_client,
142142 result_tx,
143143 payer,
144- max_resign_count ,
144+ max_re_sign_count ,
145145 } )
146146 }
147147
@@ -150,7 +150,7 @@ impl<T: Send + Clone + Sync> TransactionSender<T> {
150150 packed : & PackedTransactionWithTasks < T > ,
151151 ) -> Result < ( ) , Error > {
152152 // Check if transaction has been resigned too many times
153- if packed. resign_count >= self . max_resign_count {
153+ if packed. re_sign_count >= self . max_re_sign_count {
154154 return Err ( Error :: StaleTransaction ) ;
155155 }
156156
@@ -265,7 +265,7 @@ impl<T: Send + Clone + Sync> TransactionSender<T> {
265265
266266 // Create new packed transaction with incremented resign count
267267 let mut new_packed = data. packed_tx . clone ( ) ;
268- new_packed. resign_count += 1 ;
268+ new_packed. re_sign_count += 1 ;
269269
270270 if let Err ( e) = self . process_packed_tx ( & new_packed) . await {
271271 // Handle processing error by notifying all tasks
0 commit comments