Skip to content

Commit

Permalink
Merge pull request #131 from eval-exec/exec/truncate
Browse files Browse the repository at this point in the history
Fix truncate substraction overflow
  • Loading branch information
quake authored Nov 5, 2024
2 parents 715867e + 716e936 commit a1a76ee
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 a1a76ee

Please sign in to comment.