Skip to content

Commit

Permalink
fix: enable timeout check in transaction builder (#1484)
Browse files Browse the repository at this point in the history
TIMEOUT_CHECK_ENABLED is needed when multiple foresters are working simultaenously, otherwise there is high probability of case when forester will try to send transactions when its not eligible.
  • Loading branch information
sergeytimoshin authored Jan 15, 2025
1 parent 1551115 commit 34117fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forester/src/send_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub trait TransactionBuilder {
// 3. Slot duration is 500ms.
const LATENCY: Duration = Duration::from_millis(4 * 500);

const TIMEOUT_CHECK_ENABLED: bool = false;
const TIMEOUT_CHECK_ENABLED: bool = true;

/// Setting:
/// 1. We have 1 light slot 15 seconds and a lot of elements in the queue
Expand Down

0 comments on commit 34117fd

Please sign in to comment.