From 94fd82dc819a0cbe22210c7227e19785b0f60fb5 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 28 Oct 2016 16:36:20 +0200 Subject: [PATCH] irc: Announce the real expiry time So far we've been announcing the locktime instead of the min_expiry the node requires, this results in routes having wrong expiries. --- daemon/irc_announce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/irc_announce.c b/daemon/irc_announce.c index c2ae6ad53..6bd182c1d 100644 --- a/daemon/irc_announce.c +++ b/daemon/irc_announce.c @@ -44,7 +44,7 @@ static bool announce_channel(const tal_t *ctx, struct ircstate *state, struct pe loc->index, state->dstate->config.fee_base, state->dstate->config.fee_per_satoshi, - p->remote.locktime.locktime + state->dstate->config.min_htlc_expiry ); sign_privmsg(state, msg); irc_send_msg(state, msg);