mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-18 17:01:07 +02:00
This commit adds a new SetBit helper function in the features package along with a test for it. SetBit sets the given feature bit on the given feature bit vector along with any of its dependencies. If the bit is required, then all the dependencies are also set to required, otherwise, the optional dependency bits are set. Existing bits are only upgraded from optional to required but never downgraded from required to optional.