Skip to content

Commit c3e6be1

Browse files
committed
Fix mistake in anchor outputs amounts
The "legacy" anchor outputs are always taken from the funder's main output. Thanks @carlaKC for spotting this!
1 parent 8cc6d24 commit c3e6be1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

02-peer-protocol.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,9 @@ A sending node:
26082608
- MAY fail the channel
26092609

26102610
A receiving node:
2611+
- if `zero_fee_commitments` is used:
2612+
- MUST ignore the message.
2613+
- SHOULD send a `warning` and disconnect.
26112614
- if the `update_fee` is too low for timely processing, OR is unreasonably large:
26122615
- MUST send a `warning` and close the connection, or send an
26132616
`error` and fail the channel.

03-transactions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ Before the commitment transaction outputs are determined:
316316
- the base fee MUST be subtracted from the `to_local` or `to_remote` output,
317317
as specified in [Fee Calculation](#fee-calculation).
318318
- if `option_anchors` applies:
319-
- the `to_local_anchor` output value MUST be subtracted from the `to_local` output.
320-
- the `to_remote_anchor` output value MUST be subtracted from the `to_remote` output.
319+
- the `to_local_anchor` output value MUST be subtracted from the funder's output.
320+
- the `to_remote_anchor` output value MUST be subtracted from the funder's output.
321321

322322
The commitment transaction:
323323
- if the amount of the commitment transaction `to_local` output would be

0 commit comments

Comments
 (0)