mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-10 07:37:05 +01:00
388dfc355e
We simply record how many fee changes there are, rather than supporting a particular level. Fees are tricky: it's a noop to apply them when incoming, but we apply them when they've been acked. Unlike HTLC modifications, which are symmetric, fee updates only apply when returning to the originating node. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
70 lines
1.1 KiB
Plaintext
70 lines
1.1 KiB
Plaintext
***A after two commits with fee changes***
|
|
OUR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
THEIR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Pending incoming: FEE
|
|
SIGNED
|
|
Commit 1:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Pending incoming: FEE
|
|
SIGNED
|
|
Commit 2:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
***B after receiving fee change***
|
|
OUR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Pending incoming: FEE
|
|
SIGNED
|
|
THEIR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
***B after receiving first commit***
|
|
OUR COMMITS:
|
|
Commit 1:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
THEIR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Pending outgoing: FEE
|
|
SIGNED
|
|
***B after receiving second commit***
|
|
OUR COMMITS:
|
|
Commit 2:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
THEIR COMMITS:
|
|
Commit 0:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Pending outgoing: FEE FEE
|
|
SIGNED
|
|
***B after committing***
|
|
OUR COMMITS:
|
|
Commit 2:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
SIGNED
|
|
THEIR COMMITS:
|
|
Commit 1:
|
|
Offered htlcs:
|
|
Received htlcs:
|
|
Fee level 2
|
|
SIGNED
|