Skip to content

multifundchannel reserves funds before the opening transaction is confirmed to work #7008

@Rassah

Description

@Rassah

Issue and Steps to Reproduce

running lightning-cli multifundchannel with an array of channels to open sets funds that would be used for these channels as "reserved"

The problem is that if the opening channels function fails, where for whatever reason it locks up or is reset while trying to open the channels, the funds stay reserved, for about two weeks. The channels may be showing as opening, but there is no Funding Transaction ID, as the actual transaction to open the channels never gets created or broadcast. It could even happen twice in a row, locking up all available funds for weeks. And since there's no transaction, there's no way to "unreserve" the funds either.

Ideally the funds would be reserved AFTER the transaction is created, broadcast, and verified that it was broadcast.

Example of what was entered to cause it to lock up and reserve funds:
lightning-cli multifundchannel '[{"id":"02187352cc4b1856b9604e0a79e1bc9b301be7e0c14acbbb8c29f7051d507127d7@pw2pzwaf6dqs6ew6iysjsagew3fhryjuuuingef6qolxqeo7bmgzhbqd.onion:9735", "amount":"10000000"}, {"id":"026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2@45.86.229.190:9735", "amount":"10000000"}, {"id":"024bfaf0cabe7f874fd33ebf7c6f4e5385971fc504ef3f492432e9e3ec77e1b5cf@52.1.72.207:9735", "amount":"5000000"}, {"id":"033b63e4a9931dc151037acbce12f4f8968c86f5655cf102bbfa85a26bd4adc6d9@137.184.131.175:9735", "amount":"10000000"}]' 40000perkb

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