Skip to content

Commit

Permalink
increase EVM providers request timeouts so we can better tolerate tem…
Browse files Browse the repository at this point in the history
…porarty networking delays (also reducing user notifications spam)
  • Loading branch information
norwnd committed Jan 8, 2025
1 parent 124d75a commit a40fe6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/asset/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const (
// confCheckTimeout is the amount of time allowed to check for
// confirmations. Testing on testnet has shown spikes up to 2.5
// seconds. This value may need to be adjusted in the future.
confCheckTimeout = 4 * time.Second
confCheckTimeout = 10 * time.Second

// coinIDTakerFoundMakerRedemption is a prefix to identify one of CoinID formats,
// see DecodeCoinID func for details.
Expand Down Expand Up @@ -3772,7 +3772,7 @@ func (eth *ETHWallet) monitorBlocks(ctx context.Context) {
// tipChange callback function is invoked and a goroutine is started to check
// if any contracts in the findRedemptionQueue are redeemed in the new blocks.
func (eth *ETHWallet) checkForNewBlocks(ctx context.Context) {
ctx, cancel := context.WithTimeout(ctx, 2*time.Second)
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
bestHdr, err := eth.node.bestHeader(ctx)
if err != nil {
Expand Down

0 comments on commit a40fe6d

Please sign in to comment.