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.
This commit is contained in:
Christian Decker 2016-10-28 16:36:20 +02:00
parent 48da22ab4b
commit 94fd82dc81

View File

@ -44,7 +44,7 @@ static bool announce_channel(const tal_t *ctx, struct ircstate *state, struct pe
loc->index, loc->index,
state->dstate->config.fee_base, state->dstate->config.fee_base,
state->dstate->config.fee_per_satoshi, state->dstate->config.fee_per_satoshi,
p->remote.locktime.locktime state->dstate->config.min_htlc_expiry
); );
sign_privmsg(state, msg); sign_privmsg(state, msg);
irc_send_msg(state, msg); irc_send_msg(state, msg);