FA bridge watchtower: better resiliency to incorrect nonces
What
This MR improves the watchtower to better take into account for the transactions on the chain and to better computer accurate nonces for the transactions in the queue.
Why
It is possible to get incorrect nonces when the EVM node is late. In this case, the watchtower kept trying to inject transactions with incorrect nonces.
How
- Clear the queue regularly because we reinject claims for all unclaimed deposits anyway.
- Maintain current nonce to forge successive transactions
Edited by Alain Mebsout