[Explorer] Apply a non-zero delay to transaction fetching calls to Blockscout to avoid being rate limited

pull/6978/head
Hwee-Boon Yar 1 year ago
parent 6264e27248
commit 25ab131193
  1. 3
      modules/AlphaWalletFoundation/AlphaWalletFoundation/Transactions/BlockscoutBlockchainExplorer.swift

@ -301,8 +301,7 @@ class BlockscoutBlockchainExplorer: BlockchainExplorer {
//For avoid being rate limited
private func randomDelay() -> Int {
//TODO delay doesn't seem necessary because we aren't rate limited like by Etherscan
//Int.random(in: 4...30)
return 0
return Int.random(in: 2...10)
}
}

Loading…
Cancel
Save