mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
protocol: rename locktime fields to "delay" and "expiry"
For open transactions, locktime is a delay we require on the other side's to-self commit transaction outputs to ensure we can cut them off if necessary. For HTLCs, it's an absolute expiry time. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -35,7 +35,7 @@ struct bitcoin_tx *create_commit_tx(const tal_t *ctx,
|
||||
if (!proto_to_pubkey(theirs->final_key, &theirkey))
|
||||
return tal_free(tx);
|
||||
|
||||
if (!proto_to_locktime(theirs->locktime, &locktime))
|
||||
if (!proto_to_locktime(theirs->delay, &locktime))
|
||||
return tal_free(tx);
|
||||
|
||||
/* First output is a P2SH to a complex redeem script (usu. for me) */
|
||||
|
||||
Reference in New Issue
Block a user