1
0

option_zeroconf

- accept zeroconf channels only from a single node
 - fw_info uses get_scid_or_local_alias
This commit is contained in:
ThomasV
2023-08-08 05:09:58 +02:00
parent 96e143b6c3
commit 816e617aaf
6 changed files with 52 additions and 8 deletions

View File

@@ -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