All files / lib/flags InitFeatureFlags.ts

100% Statements 20/20
100% Branches 2/2
100% Functions 1/1
100% Lines 20/20

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 661x         1x           1x               1x           1x           1x             1x             1x   1x 1x   1x 1x   1x 1x   1x 1x   1x 1x   1x 1x    
export enum InitFeatureFlags {
    /**
     * option_data_loss_protect local flag is set. This flag enables / requires
     * the support of the extra channel_reestablish fields defined in BOLT #2.
     */
    optionDataLossProtectRequired = 0,
 
    /**
     * option_data_loss_protect local flag is set. This flag enables / requires
     * the support of the extra channel_reestablish fields defined in BOLT #2.
     */
    optionDataLossProtectOptional = 1,
 
    /**
     * initial_routing_sync asks the remote node to send a complete routing
     * information dump. The initial_routing_sync feature is overridden (and
     * should be considered equal to 0) by the gossip_queries feature if the
     * latter is negotiated via init.
     */
    initialRoutingSyncOptional = 3,
 
    /**
     * option_upfront_shutdown_script flag asks to commit to a shutdown
     * scriptpubkey when opening a channel as defined in BOLT #2.
     */
    optionUpfrontShutdownScriptRequired = 4,
 
    /**
     * option_upfront_shutdown_script flag asks to commit to a shutdown
     * scriptpubkey when opening a channel as defined in BOLT #2.
     */
    optionUpfrontShutdownScriptOptional = 5,
 
    /**
     * gossip_queries flag signals that the node wishes to use more advanced
     * gossip control. When negotiated, this flag will override the
     * initial_routing_sync flag. Advanced querying is defined in BOLT #7.
     */
    gossipQueriesRequired = 6,
 
    /**
     * gossip_queries flag signals that the node wishes to use more advanced
     * gossip control. When negotiated, this flag will override the
     * initial_routing_sync flag. Advanced querying is defined in BOLT #7.
     */
    gossipQueriesOptional = 7,
 
    optionVarOptionOptinRequired = 8,
    optionVarOptionOptinOptional = 9,
 
    gossipQueriesExRequired = 10,
    gossipQueriesExOptional = 11,
 
    optionStaticRemoteKeyRequired = 12,
    optionStaticRemoteKeyOptional = 13,
 
    paymentSecretRequired = 14,
    paymentSecretOptional = 15,
 
    basicMppRequired = 16,
    basicMppOptional = 17,
 
    optionSupportLargeChannelRequired = 18,
    optionSupportLargeChannelOptional = 19,
}