Skip to content

bug(bitcoin-da): handle_reorg holds monitored_txs write lock across async RPC calls #3256

@amathxbt

Description

@amathxbt

Description

handle_reorg holds the write lock on monitored_txs while calling get_transaction, determine_tx_status, and attempt_rebroadcast per affected tx — multiple RPC round-trips under the lock. Same anti-pattern as PR #3234.

Expected behaviour

Collect affected txids with a read lock, perform RPCs outside any lock, then apply updates under a single write lock.

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