avoid re-using of to_block during rotation of block_range
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									6100e79ebf
								
							
						
					
					
						commit
						39a6192d28
					
				
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -3834,7 +3834,7 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "ghost-slow-clap" | name = "ghost-slow-clap" | ||||||
| version = "0.3.25" | version = "0.3.26" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "frame-benchmarking", |  "frame-benchmarking", | ||||||
|  "frame-support", |  "frame-support", | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| [package] | [package] | ||||||
| name = "ghost-slow-clap" | name = "ghost-slow-clap" | ||||||
| version = "0.3.26" | version = "0.3.27" | ||||||
| description = "Applause protocol for the EVM bridge" | description = "Applause protocol for the EVM bridge" | ||||||
| license.workspace = true | license.workspace = true | ||||||
| authors.workspace = true | authors.workspace = true | ||||||
|  | |||||||
| @ -699,8 +699,8 @@ impl<T: Config> Pallet<T> { | |||||||
|             match result_block_range { |             match result_block_range { | ||||||
|                 Ok(maybe_block_range) => { |                 Ok(maybe_block_range) => { | ||||||
|                     let request_body = match maybe_block_range { |                     let request_body = match maybe_block_range { | ||||||
|                         Some((from_block, to_block)) if from_block < to_block => |                         Some((from_block, to_block)) if from_block < to_block.saturating_sub(1) => | ||||||
|                             Self::prepare_request_body_for_latest_transfers(from_block, to_block, network_data), |                             Self::prepare_request_body_for_latest_transfers(from_block, to_block.saturating_sub(1), network_data), | ||||||
|                         _ => Self::prepare_request_body_for_latest_block(network_data), |                         _ => Self::prepare_request_body_for_latest_block(network_data), | ||||||
|                     }; |                     }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user