From fa879e325cbcc7448caf50b48cda448c1bb85ea5 Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 9 Nov 2023 22:37:41 -0600 Subject: [PATCH] tx-complete: clarify that the total input/total output incl funding Found-by: @morehouse --- 02-peer-protocol.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/02-peer-protocol.md b/02-peer-protocol.md index 0c02a41..6dd530f 100644 --- a/02-peer-protocol.md +++ b/02-peer-protocol.md @@ -359,7 +359,9 @@ The nodes: The receiving node: - MUST use the negotiated inputs and outputs to construct a transaction - MUST fail the negotiation if: - - the peer's total input satoshis is less than their outputs + - the peer's total input satoshis is less than their outputs. One MUST + account for the peer's portion of the funding output when verifying + compliance with this requirement. - the peer's paid feerate does not meet or exceed the agreed `feerate` (based on the `minimum fee`). - if is the *non-initiator*: