Skip to content

bridge: Lack of Atomicity #1054

@sameh-farouk

Description

@sameh-farouk

Describe the bug

There's a critical section in handleRefundReady and handleWithdrawReady where the bridge submits a transaction to Stellar and then updates the TFChain state.
A crash between these two operations (or any failure to submit the TFChain transaction) could lead to a transaction being executed on Stellar but not marked as complete on TFChain, potentially causing it to be re-processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions