Skip to content

bug(bitcoin-da): determine_tx_status silently uses block_height=0 when get_block_info fails #3262

@amathxbt

Description

@amathxbt

Description

determine_tx_status uses .unwrap_or(0) when resolving a confirmed transaction's block height via get_block_info. A transient RPC failure silently records block_height: 0, which falsely indicates a genesis-block confirmation and can corrupt finality calculations.

Expected behaviour

Propagate the error with ? so callers retry on the next monitoring cycle.

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