option_zeroconf
- accept zeroconf channels only from a single node - fw_info uses get_scid_or_local_alias
This commit is contained in:
@@ -1206,6 +1206,13 @@ class LnFeatures(IntFlag):
|
||||
_ln_feature_contexts[OPTION_SCID_ALIAS_REQ] = (LNFC.INIT | LNFC.NODE_ANN)
|
||||
_ln_feature_contexts[OPTION_SCID_ALIAS_OPT] = (LNFC.INIT | LNFC.NODE_ANN)
|
||||
|
||||
OPTION_ZEROCONF_REQ = 1 << 50
|
||||
OPTION_ZEROCONF_OPT = 1 << 51
|
||||
|
||||
_ln_feature_direct_dependencies[OPTION_ZEROCONF_OPT] = {OPTION_SCID_ALIAS_OPT}
|
||||
_ln_feature_contexts[OPTION_ZEROCONF_REQ] = (LNFC.INIT | LNFC.NODE_ANN)
|
||||
_ln_feature_contexts[OPTION_ZEROCONF_OPT] = (LNFC.INIT | LNFC.NODE_ANN)
|
||||
|
||||
def validate_transitive_dependencies(self) -> bool:
|
||||
# for all even bit set, set corresponding odd bit:
|
||||
features = self # copy
|
||||
|
||||
Reference in New Issue
Block a user