Skip to content

Commit bdbf694

Browse files
committed
Fix wording nits
As suggested by @rustyrussell
1 parent 6e3b97c commit bdbf694

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

04-onion-routing.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ The creator of `encrypted_recipient_data` (usually, the recipient of payment):
256256

257257
The writer of `tlv_payload`:
258258

259-
- Unless `node_announcement`, `init` message or the [BOLT #11](11-payment-encoding.md#tagged-fields) offers feature `var_onion_optin`:
260-
- MUST use the legacy payload format instead.
261259
- For every node inside a blinded route:
262260
- MUST include the `encrypted_recipient_data` provided by the recipient
263261
- For the first node in the blinded route:
@@ -298,10 +296,9 @@ The reader:
298296
- the amount is below `encrypted_recipient_data.payment_constraints.htlc_minimum_msat`.
299297
- If `allowed_features` is missing:
300298
- MUST process the message as if it were present and contained an empty array.
301-
- If `allowed_features` is present:
302-
- MUST return an error if:
303-
- `encrypted_recipient_data.allowed_features.features` contains an unknown feature bit (even if it is odd).
304-
- the payment uses a feature not included in `encrypted_recipient_data.allowed_features.features`.
299+
- MUST return an error if:
300+
- `encrypted_recipient_data.allowed_features.features` contains an unknown feature bit (even if it is odd).
301+
- the payment uses a feature not included in `encrypted_recipient_data.allowed_features.features`.
305302
- If it is not the final node:
306303
- MUST return an error if the payload contains other tlv fields than `encrypted_recipient_data` and `current_blinding_point`.
307304
- MUST return an error if `encrypted_recipient_data` does not contain either `short_channel_id` or `next_node_id`.
@@ -1256,7 +1253,7 @@ reasonable time.
12561253
2. data:
12571254
* [`sha256`:`sha256_of_onion`]
12581255

1259-
The onion sent to a blinded path didn't match the recipient's encrypted relay requirements.
1256+
An error occurred within the blinded path.
12601257

12611258
### Requirements
12621259

0 commit comments

Comments
 (0)