mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Minor cleanups.
1. connect convenience variable for improved readabilty. 2. a comment explaining that timer is on channel, not HTLC. 3. use modern python style in test_htlc_send_timeout Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
63e4ea17af
commit
65c882ca3a
@@ -445,7 +445,7 @@ enum onion_type send_htlc_out(struct channel *out, u64 amount, u32 cltv,
|
||||
payment_hash, onion_routing_packet, in);
|
||||
tal_add_destructor(hout, destroy_hout_subd_died);
|
||||
|
||||
/* We give it 30 seconds to commit htlc. */
|
||||
/* Give channel 30 seconds to commit (first) htlc. */
|
||||
if (!out->htlc_timeout)
|
||||
out->htlc_timeout = new_reltimer(&out->peer->ld->timers,
|
||||
out, time_from_sec(30),
|
||||
|
||||
Reference in New Issue
Block a user