EMM should only mark tx as finalized when corresponding exit tx is really landed into root chain.
Given:
- Fast exit is submitted
- EMM starts an exit transaction on a root network
- exit transaction is failed for whatever reason
Expected:
transaction should not be marked as finalized in EMM database
Actual:
transaction is marked as finalized
Consequences:
when failed tx marked as processed, EMM won't retry exit and money will struck in exit handler.
Manual workaround:
to push stuck txs through, set finalized attribute to 0 for corresponding database record
EMM should only mark tx as finalized when corresponding exit tx is really landed into root chain.
Given:
Expected:
transaction should not be marked as finalized in EMM database
Actual:
transaction is marked as finalized
Consequences:
when failed tx marked as processed, EMM won't retry exit and money will struck in exit handler.
Manual workaround:
to push stuck txs through, set
finalizedattribute to0for corresponding database record