Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zero cltv delta #2641

Closed
xraid opened this issue Oct 19, 2021 · 5 comments
Closed

zero cltv delta #2641

xraid opened this issue Oct 19, 2021 · 5 comments

Comments

@xraid
Copy link

xraid commented Oct 19, 2021

what is the purpose of having channels in C-Ligtning with zerp cltv delta ?

2021-10-18 12:15:15.864 [WRN] CRTR: Channel 680420676405231616 has zero cltv delta

its a testtest alias at https://github.com/rootzoll/raspiblitz

C-Lightning 0206e0777f02393bb60e09f1bfeb9b95024ba661c8415e98a1ab87c86afe960d8c


lncli getchaninfo  680420676405231616
{
    "channel_id": "680420676405231616",
    "chan_point": "9e1324c273538ee0ad8d5124d652575ddcadddf933132f1c5f35bb6177710db2:0",
    "last_update": 1634602988,
    "node1_pub": "0206e0777f02393bb60e09f1bfeb9b95024ba661c8415e98a1ab87c86afe960d8c",
    "node2_pub": "0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c",
    "capacity": "1000000",
    "node1_policy": {
        "time_lock_delta": 0,
        "min_htlc": "0",
        "fee_base_msat": "0",
        "fee_rate_milli_msat": "0",
        "disabled": false,
        "max_htlc_msat": "1000000000",
        "last_update": 1592833248
    },
    "node2_policy": {
        "time_lock_delta": 40,
        "min_htlc": "1",
        "fee_base_msat": "0",
        "fee_rate_milli_msat": "1000",
        "disabled": false,
        "max_htlc_msat": "990000000",
        "last_update": 1634602988
    }
}
@openoms
Copy link
Collaborator

openoms commented Oct 19, 2021

More context please, is the CL channel on a raspiblitz or is this just a general lightning question?

https://lightningwiki.net/index.php/Delays

See the discussion:
lightningnetwork/lnd#1523

Should not be able to set 0:

You can't have a value of 0 for the CLTV delta. If you did, then you'd be exposed to losing funds on each HTLC you forward, as a race condition is introduced if you ever need to go to the chain for an outgoing HTLC.

Default:
https://github.com/lightningnetwork/lnd/blob/e6c65f1cbd5a7f3f1aed7b5ef7720a7112156d78/sample-lnd.conf#L506

Set with:

$ lncli updatechanpolicy -h
NAME:
   lncli updatechanpolicy - Update the channel policy for all channels, or a single channel.

USAGE:
   lncli updatechanpolicy [command options] base_fee_msat fee_rate time_lock_delta [--max_htlc_msat=N] [channel_point]

CATEGORY:
   Channels

DESCRIPTION:
   
  Updates the channel policy for all channels, or just a particular channel
  identified by its channel point. The update will be committed, and
  broadcast to the rest of the network within the next batch.
  Channel points are encoded as: funding_txid:output_index

OPTIONS:
   --base_fee_msat value    the base fee in milli-satoshis that will be charged for each forwarded HTLC, regardless of payment size (default: 0)
   --fee_rate value         the fee rate that will be charged proportionally based on the value of each forwarded HTLC, the lowest possible rate is 0 with a granularity of 0.000001 (millionths)
   --time_lock_delta value  the CLTV delta that will be applied to all forwarded HTLCs (default: 0)
   --min_htlc_msat value    if set, the min HTLC size that will be applied to all forwarded HTLCs. If unset, the min HTLC is left unchanged. (default: 0)
   --max_htlc_msat value    if set, the max HTLC size that will be applied to all forwarded HTLCs. If unset, the max HTLC is left unchanged. (default: 0)
   --chan_point value       The channel whose fee policy should be updated, if nil the policies for all channels will be updated. Takes the form of: txid:output_index

@xraid
Copy link
Author

xraid commented Oct 20, 2021

Your channel 680420676405231616 has zero cltv delta

@xraid
Copy link
Author

xraid commented Oct 20, 2021

why ?

@xraid
Copy link
Author

xraid commented Oct 20, 2021

is that context clear ?

@openoms
Copy link
Collaborator

openoms commented Oct 20, 2021

I am not in control of that node and don't know why the CLTV delta is 0.
The node has it's last update a year ago so I consider it abandoned.

Are you just asking here because the node owner links to this repo on 1ml.com?

https://1ml.com/node/0206e0777f02393bb60e09f1bfeb9b95024ba661c8415e98a1ab87c86afe960d8c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants