1
0

lnpeer: make feature-bit testing easier

so that we can always test like: self.localfeatures & FEATURE_BIT_OPT
This commit is contained in:
SomberNight
2019-08-02 17:58:45 +02:00
committed by ThomasV
parent 014b921393
commit fdf8d8609b
2 changed files with 9 additions and 3 deletions

View File

@@ -563,7 +563,7 @@ class LnLocalFeatures(IntFlag):
LN_LOCAL_FEATURES_KNOWN_SET = set(LnLocalFeatures)
def get_ln_flag_pair_of_bit(flag_bit: int):
def get_ln_flag_pair_of_bit(flag_bit: int) -> int:
"""Ln Feature flags are assigned in pairs, one even, one odd. See BOLT-09.
Return the other flag from the pair.
e.g. 6 -> 7