tfchain icon indicating copy to clipboard operation
tfchain copied to clipboard

Don't keep retrying expired withdraws

Open DylanVerstraete opened this issue 2 years ago • 2 comments

Right now the code automically emits an event every X time to retry a withdraw transaction. We actually don't have to do that, we can just keep these in a seperate storage map and let the bridge daemons read from this map every X time. This will save some amount of work done on chain.

DylanVerstraete avatar Jan 25 '23 14:01 DylanVerstraete

This is also causing an issue on devnet: when stellar testnet is reset the bridge wallet is reset as well. Whenever someone tries to withdraw from the bridge, the transaction is retried forever until some tft is deposited back into the bridge.

DylanVerstraete avatar Feb 06 '23 09:02 DylanVerstraete

@robvanmieghem thoughts on this?

DylanVerstraete avatar Feb 06 '23 09:02 DylanVerstraete