From ZmnSCPxj at protonmail.com Tue Jan 2 00:12:31 2018 From: ZmnSCPxj at protonmail.com (ZmnSCPxj) Date: Mon, 01 Jan 2018 19:12:31 -0500 Subject: [Lightning-dev] Replaceable Funding Transactions Message-ID: Good morning list, Reading the BOLT spec, and considering the common issue of slow transaction confirmation on the blockchain level, I want to ask the list if it is possible to use replaceable (replace-by-fee) funding transactions, at the current 1.0 BOLT v1.0 has a below suggestion: > A non-funding node (fundee): > > * SHOULD forget the channel if it does not see the funding transaction after a reasonable timeout So, to my mind, it is possible to do RBF funding transactions, as long as the counterparty allows multiple channels per peer (i.e. not work with c-lightning, which restricts one-channel-one-peer). The consideration is below: 1. Send open_channel for channel #1 2. Receive accept_channel for channel #1 3. Create RBF-able funding transaction for low feerate. 4. Send funding_created for channel #1 5. Receive funding_signed for channel #1 6. Wait on blockchain. Since feerate is low, it does not confirm. So, we decide, we should increase fee rate. 7. Send open_channel for channel #2 to same party. 8. Receive accept_channel for channel #2. 9. Create replacement funding transaction for high feerate. 10. Send funding_created for channel #2. 11. Receive funding_signed for channel #2 12. Wait on blockchain. Because feerate is so high, it confirms quickly. 13. Send funding_locked for channel #2, receive funding_locked for channel #2 14. Let counterparty forget channel #1 (which is now impossible to make, as the funding transaction spends an already-spent UTXO). Is the above possible in current BOLT spec (modulo, the fact that c-lightning restricts channels)? Regards, ZmnSCPxj -------------- next part -------------- An HTML attachment was scrubbed... URL: