pub(crate) fn with_known_relevant_init_flags(init_ctx: &InitFeatures) -> Self {
		let mut flags = Vec::new();
		for (i, feature_byte)in init_ctx.flags.iter().enumerate() {
			match i {
				// Blank out initial_routing_sync (feature bits 2/3), gossip_queries (6/7),
				// gossip_queries_ex (10/11), option_static_remotekey (12/13), and
				// payment_secret (14/15)
				0 => flags.push(feature_byte & 0b00110011),
				1 => flags.push(feature_byte & 0b00000011),
				_ => (),
			}
		}
		Self { flags, mark: PhantomData, }
	}
/// Takes the flags that we know how to interpret in an init-context features that are also
/// relevant in a node-context features and creates a node-context features from them.
/// Be sure to blank out features that are unknown to us.
Takes the flags that we know how to interpret in an init-context features that are also
relevant in a node-context features and creates a node-context features from them.
Be sure to blank out features that are unknown to us.
Takes the flags that we know how to interpret in an init - context features that are also relevant in a node - context features and creates a node - context features from them . Be sure to blank out features that are unknown to us .
pub(crate) fn with_known_relevant_init_flags(init_ctx: &InitFeatures) -> Self {
		let mut flags = Vec::new();
		for (i, feature_byte)in init_ctx.flags.iter().enumerate() {
			match i {
				// Blank out initial_routing_sync (feature bits 2/3), gossip_queries (6/7),
				// gossip_queries_ex (10/11), option_static_remotekey (12/13), and
				// payment_secret (14/15)
				0 => flags.push(feature_byte & 0b00110011),
				1 => flags.push(feature_byte & 0b00000011),
				_ => (),
			}
		}
		Self { flags, mark: PhantomData, }
	}
pub ( crate ) fn with_known_relevant_init_flags ( init_ctx : & InitFeatures ) -> Self { let mut flags = Vec :: new ( ) ; for ( i , feature_byte ) in init_ctx . flags . iter ( ) . enumerate ( ) { match i { // Blank out initial_routing_sync (feature bits 2/3), gossip_queries (6/7), // gossip_queries_ex (10/11), option_static_remotekey (12/13), and // payment_secret (14/15) 0 => flags . push ( feature_byte & 0b00110011 ) , 1 => flags . push ( feature_byte & 0b00000011 ) , _ => ( ) , } } Self { flags , mark : PhantomData , } }
Takes the flags that we know how to interpret in an init-context features that are also
relevant in a node-context features and creates a node-context features from them.
Takes the flags that we know how to interpret in an init - context features that are also relevant in a node - context features and creates a node - context features from them .
init_ctx
&InitFeatures
init_ctx
&InitFeatures