mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-26 02:24:18 +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:
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
|
||||
o1 = pkt_from_file(argv[2], PKT__PKT_OPEN)->open;
|
||||
o2 = pkt_from_file(argv[3], PKT__PKT_OPEN)->open;
|
||||
a = pkt_from_file(argv[4], PKT__PKT_OPEN_ANCHOR)->open_anchor;
|
||||
if (!proto_to_locktime(o2->locktime, &locktime))
|
||||
if (!proto_to_locktime(o2->delay, &locktime))
|
||||
errx(1, "Invalid locktime in o2");
|
||||
|
||||
/* We need our private key to spend commit output. */
|
||||
|
||||
Reference in New Issue
Block a user