Skip to content

Commit

Permalink
Fix sub overflow panic on txrelay flow time check
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofstuff committed Jan 8, 2024
1 parent 8d522e2 commit b630e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/flows/src/v5/txrelay/flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl RelayTransactionsFlow {
loop {
// TODO: Extract should_throttle logic to a separate function
let now = unix_now();
if now - last_checked_time > 10000 {
if now > last_checked_time + 10000 {
let next_snapshot = self.ctx.mining_manager().clone().snapshot();
let snapshot_delta = &next_snapshot - &curr_snapshot;

Expand Down

0 comments on commit b630e96

Please sign in to comment.