mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
daemon: implement HTLC expiry.
We do the simplest thing: a timer goes off, and we check all HTLCs for one which has expired more than 30 seconds ago. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -132,4 +132,7 @@ void make_commit_txs(const tal_t *ctx,
|
||||
const struct channel_state *cstate,
|
||||
struct bitcoin_tx **ours, struct bitcoin_tx **theirs);
|
||||
|
||||
void peer_add_htlc_expiry(struct peer *peer,
|
||||
const struct abs_locktime *expiry);
|
||||
|
||||
#endif /* LIGHTNING_DAEMON_PEER_H */
|
||||
|
||||
Reference in New Issue
Block a user