dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
153 stars 95 forks source link

feat: retry delay strategy #871

Closed krpeacock closed 5 months ago

krpeacock commented 6 months ago

Description

Developers have noticed the agent is more frequently erroring with the new watermark protections against replay attacks / stale data. This feature adds a delay strategy for retries that will allow for more time for nodes to catch up, with exponential increases to the rate

Fixes SDK-1562

How Has This Been Tested?

new e2e tests

Checklist:

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size
@dfinity/agent 85.62 KB (+0.93% 🔺)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.71 KB (+1.4% 🔺)
@dfinity/assets 80.24 KB (+0.88% 🔺)
@dfinity/identity 57.92 KB (+1.34% 🔺)
@dfinity/identity-secp256k1 265.65 KB (+0.2% 🔺)