Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Apr 23, 2024
1 parent d30aa2b commit 357a8b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ The sending node:
- If it wants the receiving node to contribute to the funding transaction
using `option_will_fund`:
- MUST send `request_funding` containing one of the `lease_type`s
advertised by the receiving node in their [liquidity ads](07-routing-gossip.md#liquidity-ads).
supported by the receiving node.
- MUST set `requested_sats` to the amount of sats it wants to pay for at
the advertised lease rate.

Expand Down Expand Up @@ -1283,19 +1283,20 @@ The accepting node:
- MAY respond with a `funding_satoshis` value of zero.
- If it requires the opening node to only use confirmed inputs:
- MUST set `require_confirmed_inputs`
- If the `request_funding` tlv was sent in `open_channel2`:
- If the `request_funding` TLV was sent in `open_channel2`:
- If it does not want to contribute funds or to be paid for its
funding contributions:
- SHOULD omit the `provide_funding` tlv.
- SHOULD omit the `provide_funding` TLV.
- Otherwise, if it decides to be paid for its contributions:
- MUST include the `provide_funding` tlv.
- MUST include the `provide_funding` TLV.
- MUST set `funding_satoshis` to a value greater than `0`.
- MAY set `funding_satoshis` less or more than `requested_sats`.
- MUST fill the `provide_funding` tlv with a lease witness that
- MUST fill the `provide_funding` TLV with a lease witness that
matches the lease from `request_funds` ([liquidity ads](07-routing-gossip.md#liquidity-ads)).

The receiving node:
- MAY fail the negotiation if:
- It sent `request_funding` and `provide_funding` is not set.
- It sent `request_funding` and `provide_funding` is set and:
- `funding_satoshis` is smaller than requested.
- MUST fail the negotiation if:
Expand Down

0 comments on commit 357a8b0

Please sign in to comment.