Open ebma opened 2 weeks ago
@pendulum-chain/product this is a bug fix/improvement because sometimes requests are not executed properly if a multitude of them are pending at the same time.
considering this a bug and taking it as priority as there may be multiple offramp request could be created which leads to multiple redeem requests
Context
When the vault executes multiple issue/redeem requests at the same time, sometimes it happens that it's using the same nonce. Usually, this shouldn't happen as the nonce is tracked locally but apparently, there are still some cases were the nonce is not properly increased.
This happened in the following cases on a vault. Three pending requests were about to be executed but two of them failed. Due to this error, the execution is not retried (until the next restart).
After the restart, it happened again with the one of the two remaining requests.
TODO
SubxtRuntimeError(Transaction(Invalid(\"Transaction was usurped by another with the same nonce\")))
as a recoverable error and retry the submission (with a new transaction with a new nonce)