Skip to content

Commit ad2519a

Browse files
rustyrussellcdecker
authored andcommitted
spelling: Check LockTime Verify.
Signed-off-by: Rusty Russell <[email protected]>
1 parent e1b1abd commit ad2519a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

lightningd/htlc_end.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct htlc_out *htlc_out_check(const struct htlc_out *hout,
152152
" less than %"PRIu64,
153153
hout->in->msatoshi, hout->msatoshi);
154154
if (hout->in->cltv_expiry <= hout->cltv_expiry)
155-
return corrupt(abortstr, "Input ctlv_expiry %u"
155+
return corrupt(abortstr, "Input cltv_expiry %u"
156156
" less than %u",
157157
hout->in->cltv_expiry, hout->cltv_expiry);
158158
if (!sha256_eq(&hout->in->payment_hash, &hout->payment_hash))

lightningd/options.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ static void config_register_opts(struct lightningd *ld)
316316
"Percentage of fee to request for their commitment");
317317
opt_register_arg("--cltv-delta", opt_set_u32, opt_show_u32,
318318
&ld->config.cltv_expiry_delta,
319-
"Number of blocks for ctlv_expiry_delta");
319+
"Number of blocks for cltv_expiry_delta");
320320
opt_register_arg("--cltv-final", opt_set_u32, opt_show_u32,
321321
&ld->config.cltv_final,
322-
"Number of blocks for final ctlv_expiry");
322+
"Number of blocks for final cltv_expiry");
323323
opt_register_arg("--commit-time=<millseconds>",
324324
opt_set_u32, opt_show_u32,
325325
&ld->config.commit_time_ms,

tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def test_htlc_in_timeout(node_factory, bitcoind, executor):
291291
# l1 will disconnect and not reconnect.
292292
l1.daemon.wait_for_log('dev_disconnect: -WIRE_REVOKE_AND_ACK')
293293

294-
# Deadline HTLC expiry minus 1/2 cltv-expiry delta (rounded up) (== cltv - 3). ctlv is 5+1.
294+
# Deadline HTLC expiry minus 1/2 cltv-expiry delta (rounded up) (== cltv - 3). cltv is 5+1.
295295
bitcoind.generate_block(2)
296296
assert not l2.daemon.is_in_log('hit deadline')
297297
bitcoind.generate_block(1)

tools/check-spelling.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihg
55
echo "Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word."
66
exit 1
77
fi
8+
9+
if git --no-pager grep -nHiE 'ctlv' -- . ':!tools/check-spelling.sh'; then
10+
echo "It's check lock time verify, not check time lock verify!" >&2
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)