mirror of
https://git.ghostchain.io/proxmio/ghost-node.git
synced 2025-12-27 19:29:56 +00:00
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:
@@ -699,8 +699,8 @@ impl<T: Config> Pallet<T> {
|
||||
match result_block_range {
|
||||
Ok(maybe_block_range) => {
|
||||
let request_body = match maybe_block_range {
|
||||
Some((from_block, to_block)) if from_block < to_block =>
|
||||
Self::prepare_request_body_for_latest_transfers(from_block, to_block, network_data),
|
||||
Some((from_block, to_block)) if from_block < to_block.saturating_sub(1) =>
|
||||
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),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user