EspressoSystems / cape

Configurable Asset Privacy for Ethereum
https://cape.docs.espressosys.com/
GNU General Public License v3.0
93 stars 16 forks source link

Nonce errors in relayer transaction submission #1173

Closed sveitser closed 2 years ago

sveitser commented 2 years ago

We have about 30x per day: replacement transaction underpriced. This is quite noisy. We could retry these transactions a few times if this happens or compute the nonce manually. The second solution is a bit more involved though as we may need to handle the case where the local nonce goes out of sync.

sveitser commented 2 years ago

@philippecamacho we were thinking it would be worth to add the retry to have 1) less noisy logs 2) less user facing errors. Let me know what you think.

Although 1) could also be "fixed" by just ignoring these errors in datadog.

philippecamacho commented 2 years ago

@philippecamacho we were thinking it would be worth to add the retry to have 1) less noisy logs 2) less user facing errors. Let me know what you think.

Although 1) could also be "fixed" by just ignoring these errors in datadog.

The retry solution looks good to me.