Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

WIP pull requests for feature bit unification and TLV bits

1 message, Feb 12, 2019. Started by Rusty Russell.

Rusty Russell

Permalink First message in the Wayback Machine

Rusty Russell permalink original

Hi all,

        Finally tried to write up the feature bit changes:
        https://github.com/lightningnetwork/lightning-rfc/pull/571

And also start on TLV definition for the onion:

        https://github.com/lightningnetwork/lightning-rfc/pull/572

Feature bits: -------------

1. Rename local/global to peer/channel.
2. Both get sent in node_announcment (you can look for peers with
   specific things)
3. channel gets sent in channel_announcement (you know you can't send
   though channels with unknown even bits).

I also took a stab at assigning all the 1.1 bits from the wiki.

TLVs: -----

1. General requirements and format (1 byte type, var_int length).
2. Took a stab at defining switch_chain, switch_ephkey and
   multi_part_payment.

Also added a `9` field to BOLT11 to flag base amp, OG amp, etc.

Cheers, Rusty.