lnd v0.15.3-beta
The documentation for lnrpc.RoutingPolicy
shows a boolean field called disabled
, but it provides no definition of what that means. Each channel has 2 peers, and each peer in a channel has its own routing policy. Some of the channels have disabled set to true for one peer and false for the other.
Here is an example:
$ lncli getchaninfo 697113461880782849
{
"channel_id": "697113461880782849",
"chan_point": "094c1a9d6cd5294847f560758e8b8d8cdb4ef386ca746112536564742a92184b:1",
"last_update": 1667018957,
"node1_pub": "02572c2e1b43a78bb060e7d322b033443efc0d8d60fc2b111dd8bb999aa940d1f5",
"node2_pub": "02a45def9ae014fdd2603dd7033d157faa3a55a72b06a63ae22ef46d9fafdc6e8d",
"capacity": "5281151",
"node1_policy": {
"time_lock_delta": 40,
"min_htlc": "1000",
"fee_base_msat": "1000",
"fee_rate_milli_msat": "10",
"disabled": false,
"max_htlc_msat": "5228340000",
"last_update": 1665821197
},
"node2_policy": {
"time_lock_delta": 24,
"min_htlc": "1000",
"fee_base_msat": "0",
"fee_rate_milli_msat": "501",
"disabled": true,
"max_htlc_msat": "5228340000",
"last_update": 1667018957
}
}
Is it true that a channel is only active if the routing policy for both peers shows disabled = false
?
Or is setting a routing policy to disabled the equivalent of setting it to null? Some channels have peers with null routing policies as in this example:
$ lncli getchaninfo 555817421567164416
{
"channel_id": "555817421567164416",
"chan_point": "43a329e374f19ac11cb8377d8d791505d27e60c221a3cfe99a2d758318803e0f:0",
"last_update": 0,
"node1_pub": "0207481a19a3f51a48f134e95afa67cfeffdb38a99b5ad3494a320c4918aaaf579",
"node2_pub": "02ef61a252f9504a42fc264a28476f44cea0711a44b2da0bd729ad52aaee9d86b7",
"capacity": "10000",
"node1_policy": null,
"node2_policy": null
}
Is the above channel active? If so, does it use default routing policy values?
Is disabled = true
the same as a null routing policy? Or does it disable the whole channel if one node disables its routing policy?