Skip to content

Channel pending / funds locked after lightningd failed to sendrawtransaction #2855

Open
@renepickhardt

Description

@renepickhardt

Recently a friend asked me to help out since he tried to open a channel but the funding transaction was never seen on chain. I assumed the channel open protocol was not complete and studied the logfile.

I was surprised that the funding_signed_message was received and signatures for the commitment tx were there. I also discovered in the log file that the the call sendrawtransaction ... exited without success.

It seems like afterwards lightningd did never again attempt to rebroadcast the funding transaction.

The situation became unluckily worse as my friend tried to force-close the channel hoping he would get his output back as he expected c-lightning would just forget about the open transaction (Meanwhile I understand that with dev-rescanoutputs and withdraw all I could have indeed created a double spend of the funding transaction to get the money back).

Anyway after I rebroadcasted the fundingtx which was stored in the logfile the same situation occurred with the commitment tx. It seems that the first time it was broadcasted the bitcoin network could not accept it as it was spending the funding tx which was not even in the mempool. Afterwards it was not broadcasted again. The command to force close the channel (in hope to trigger the broadcast again) aborted as lightning-cli said the channel was already unilaterally closed. (I was able to resolve this with dev-sign-last-tx and a manual broadcast)

suggestion / feature request

I suggest periodically broadcast transactions which are not in the mempool but which were supposed to be mined / broadcasted.

Issue and Steps to Reproduce

can't reproduce, was not able to figure out why sendrawtransaction failed

getinfo output

don't know: lightningd was updated and recompiled in developer mode to get the funds back. I would assume v0.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions