Skip to content

Conversation

@ecdsa
Copy link
Member

@ecdsa ecdsa commented Feb 23, 2022

This replaces #7586
I refactored the code in _shutdown:

  • the fee negotiation is split into smaller functions, reducing the scope of variables.
  • the while loop logic is condensed in a few lines, so it is easier to understand termination conditions.
  • removed code that was never executed

Updates the closing fee negotiation to comply with most recent spec
changes, see lightning/bolts#847
The closing negotiation is backwards compatible with the old
negotiation.
@ecdsa ecdsa force-pushed the modern_fee_negotiation branch from e45828a to d22b7f3 Compare March 7, 2022 09:42
@ecdsa ecdsa mentioned this pull request Mar 7, 2022
3 tasks
@ecdsa ecdsa force-pushed the modern_fee_negotiation branch from d22b7f3 to c90f87c Compare March 8, 2022 10:53
ecdsa added 2 commits March 8, 2022 11:55
  - the fee negotiation is split into smaller functions, reducing the scope of variables.
  - the while loop logic is condensed in a few lines, so it is easier to understand termination conditions.
  - removed code that was never executed
 - clarify TODOs
 - add tests for shutdown with modern negotiation
@ecdsa ecdsa force-pushed the modern_fee_negotiation branch from c90f87c to 6667a79 Compare March 8, 2022 10:57
@ecdsa ecdsa merged commit 6667a79 into master Mar 8, 2022
@SomberNight SomberNight deleted the modern_fee_negotiation branch June 7, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants