Skip to content

CLN should inform user when/why sendrawtransaction fails #6977

@btweenthebars

Description

@btweenthebars

Issue and Steps to Reproduce

I have some force closes that the closing transactions weren't broadcasted by bitcoind because "mempool min fee not met". The channels were hanging with AWAITING_UNILATERAL without having closing txs associated with the funding txs, by looking from the global blockchain explorers.

I had to turn on the debug log to grab the raw transactions and broadcast them manually over a blockchain explorer site.

there's no error messages even in the debug log. I had to try to broadcast them myself to see the issue.

I think, the bitcoind error message along with failed raw tx should be relayed to user either in the info log or better recorded in db so that it can be fetched somehow by "listpeers"

You may argue that such tx will be broadcasted eventually in this case when mempool is cheap enough but user might want to go with other options like using tx accelerator, or CPFP if possible. And what if bitcoind refuses with other reasons, user will be left frustrated having to shutdown and turn on debug log to find out. So I believe failing to sendrawtraction should be handle better.

getinfo output

"version": "v23.11.1-modded",

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