mirror of
https://github.com/lightning/bolts.git
synced 2025-02-21 22:11:54 +01:00
fixup! BOLT 11: Add test vectors for feature bitfield.
This commit is contained in:
parent
2eea93e133
commit
03fd18e5bc
1 changed files with 3 additions and 2 deletions
|
@ -141,7 +141,7 @@ Currently defined tagged fields are:
|
|||
* `fee_base_msat` (32 bits, big-endian)
|
||||
* `fee_proportional_millionths` (32 bits, big-endian)
|
||||
* `cltv_expiry_delta` (16 bits, big-endian)
|
||||
* `9` (5): `data_length` variable. One or more bytes containing features
|
||||
* `9` (5): `data_length` variable. One or more 5-bit values containing features
|
||||
supported or required for receiving this payment.
|
||||
See [Feature Bits](#feature-bits).
|
||||
|
||||
|
@ -196,7 +196,8 @@ A reader:
|
|||
- if the `9` field contains unknown _odd_ bits that are non-zero:
|
||||
- MUST ignore the bit.
|
||||
- if the `9` field contains unknown _even_ bits that are non-zero:
|
||||
- MUST fail.
|
||||
- MUST fail the payment.
|
||||
- SHOULD indicate the unknown bit to the user.
|
||||
- MUST check that the SHA2 256-bit hash in the `h` field exactly matches the hashed
|
||||
description.
|
||||
- if a valid `n` field is provided:
|
||||
|
|
Loading…
Add table
Reference in a new issue