@@ -45,7 +45,7 @@ pub struct ServiceTransactionMemory {
4545 /// Nonce of the transaction it was send with.
4646 //pub nonce: U256,
4747
48- /// Block number, at wich this transaction was "sent",
48+ /// Block number, at which this transaction was "sent",
4949 /// in the meaning of prepared to be propagated.
5050 pub block_sent : u64 ,
5151 // It would be good to know if the Service Transaction got included.
@@ -96,7 +96,7 @@ impl KeygenTransactionSender {
9696 client : & dyn EngineClient ,
9797 mining_address : & Address ,
9898 mode_to_check : KeyGenMode ,
99- upcomming_epoch : & U256 ,
99+ upcoming_epoch : & U256 ,
100100 current_round : & U256 ,
101101 ) -> Result < ShouldSendKeyAnswer , CallError > {
102102 let keygen_mode = get_pending_validator_key_generation_mode ( client, mining_address) ?;
@@ -105,12 +105,12 @@ impl KeygenTransactionSender {
105105 Some ( last_sent) => {
106106 match & last_sent. transaction_type {
107107 ServiceTransactionType :: KeyGenTransaction (
108- historic_upcomming_epoch ,
108+ historic_upcoming_epoch ,
109109 historic_round,
110110 historic_key_gen_mode,
111111 ) => {
112112 if * historic_key_gen_mode != keygen_mode
113- || * historic_upcomming_epoch != upcomming_epoch . as_u64 ( )
113+ || * historic_upcoming_epoch != upcoming_epoch . as_u64 ( )
114114 || * historic_round != current_round. as_u64 ( )
115115 {
116116 // other key gen mode, we need to send.
@@ -163,14 +163,14 @@ impl KeygenTransactionSender {
163163 & mut self ,
164164 client : & dyn EngineClient ,
165165 mining_address : & Address ,
166- upcomming_epoch : & U256 ,
166+ upcoming_epoch : & U256 ,
167167 current_round : & U256 ,
168168 ) -> Result < ShouldSendKeyAnswer , CallError > {
169169 self . should_send (
170170 client,
171171 mining_address,
172172 KeyGenMode :: WritePart ,
173- upcomming_epoch ,
173+ upcoming_epoch ,
174174 current_round,
175175 )
176176 }
@@ -179,14 +179,14 @@ impl KeygenTransactionSender {
179179 & mut self ,
180180 client : & dyn EngineClient ,
181181 mining_address : & Address ,
182- upcomming_epoch : & U256 ,
182+ upcoming_epoch : & U256 ,
183183 current_round : & U256 ,
184184 ) -> Result < ShouldSendKeyAnswer , CallError > {
185185 self . should_send (
186186 client,
187187 mining_address,
188188 KeyGenMode :: WriteAck ,
189- upcomming_epoch ,
189+ upcoming_epoch ,
190190 current_round,
191191 )
192192 }
0 commit comments