Skip to content

Commit

Permalink
Fix truncate substraction overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Eval EXEC <execvy@gmail.com>
  • Loading branch information
eval-exec committed Nov 1, 2024
1 parent 715867e commit 716e936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits/offchain_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl OffchainTransactionDependencyProvider {
.into_iter()
.partition(|(_k, v)| {
*v >= current_tip_block_number
|| (v - current_tip_block_number) >= KEEP_BLOCK_PERIOD
|| (current_tip_block_number - v) >= KEEP_BLOCK_PERIOD
});
self.tx_tip_num_map = keep;
self.txs = self
Expand Down

0 comments on commit 716e936

Please sign in to comment.