Skip to content

Commit

Permalink
Increase payment send timeout to 1 -> 10 minutes
Browse files Browse the repository at this point in the history
This patch increases the payment send timeout from 60 seconds to 600, we
suddenly started observing paymetns taking this long to process,
probably due to gnosis chain / xdai gas conditions and tx inclusion
rules.
  • Loading branch information
jkilpatr committed Mar 11, 2024
1 parent 1b6948b commit 9f88d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rita_common/src/payment_validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub const PAYMENT_RECEIVE_TIMEOUT: Duration = Duration::from_secs(259200u64);
/// enforce upon us if we miss a payment and due to the implementation of DebtKeeper
/// we will not send another payment while one is in flight. On Xdai the block time is
/// once every 5 seconds, meaning a minimum of 20 seconds is required to ensure 4 confirms
pub const PAYMENT_SEND_TIMEOUT: Duration = Duration::from_secs(60u64);
pub const PAYMENT_SEND_TIMEOUT: Duration = Duration::from_secs(600u64);
/// How many blocks before we assume finality
const BLOCKS_TO_CONFIRM: u32 = 4;
/// How old does a txid need to be before we don't accept it?
Expand Down

0 comments on commit 9f88d4a

Please sign in to comment.