mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 13:45:48 +00:00
04c0c41a2d
TronGrid's public (no API key) endpoint rate-limits aggressively under normal, human-paced usage - confirmed live during send-flow testing, where every Confirm tap (each re-running fee estimation + broadcast) started hitting bare 429s after only a few attempts, with no way through except retrying by hand until one happened to land outside the rate-limit window. Added retryOn429 (exponential backoff, same shape as the existing test-only helper in TronBalancesIntegrationTest) at the RealTronGridApi level so every call - fee estimation, broadcast, balance reads - retries transparently. Broadcast is safe to retry on 429 specifically since it means TronGrid rejected the request before processing it, not that the transaction may already be in flight.