Check Bolt 2 spec - Closing Negotiation: closing_signed#250
Check Bolt 2 spec - Closing Negotiation: closing_signed#250neonknight64 wants to merge 2 commits into
Conversation
|
I'd like to move to just using ChannelError instead of filling out actions everywhere since ChannelError is much simpler and lets ChannelManager make more decisions about when to disconnect/just send an error. That said, I think closing_signed negotiation is somewhat borked right now - I went to go write tests and make sure we're compliant but ended up deciding the spec is unimplementable and confused - the whole "drop your own output" thing is kinda nonsense given that the message is sending the total fee and you cannot exceed the base fee on the last commitment transaction (which is also undefined since there are two commitment transactions and the spec doesn't stop update_fee updates after shutdown). Given its likely gonna get rewritten for 1.1 I kinda just decided to leave it as-is for now and make sure 1.1 is more clear and then just move on requiring 1.1. |
|
Thank you for the comments TheBlueMatt. Based on your comments I reverted the changes. Here is a checklist of all the Bolt 2 specs I checked for the Closing Negotiation - closing_signed functionality. Checking Bolt 2 spec for Closing Negotiation - closing_signed |
|
You may want to check out Rusty’s first draft at lightning/bolts#513
… On Nov 14, 2018, at 07:14, Yuko Roodt ***@***.***> wrote:
Closed #250.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Added more appropriate actions for the errors in the closing_signed function of channel. Out of bound fee updates have disconnect peer actions as specified by the bolt 2 specs. Error messages where sent when out of order instructions were received, I wasn't sure about this as the bolt 2 specs didn't specify what actions should be taken in these cases.