Skip to content

Handle unmined Bitcoin transactions #25

@ts5746

Description

@ts5746

Description

Currently, the Bitcoin module does not take action if a transaction is not mined into a block.

Problem

Unmined transaction may result in undesired effects, such as the input UTXOs marked as spent forever and the transaction not being confirmed.

Solution

The Bitcoin module can recognize this, e.g. by checking that the transceive direction of the message is "TX" instead of "RX" after seeing it in a block, and/or by noticing that the UTXOs do not show the hash of the transaction in which they were to be spent.

Th Ethereum module checks for this by waiting for a "receipt" when sending the transaction, which is feasible because of the significantly short block time. Nevertheless, this might be reviewed as well to ensure this situation is handled in a consistent manner for all blockchains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions