Browse Source

bug: channel_update parameters slipped by one

ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
5c80963577
  1. 3
      lightningd/channel/channel.c

3
lightningd/channel/channel.c

@ -224,8 +224,7 @@ static void send_channel_update(struct peer *peer, bool disabled)
flags = peer->channel_direction | (disabled << 1); flags = peer->channel_direction | (disabled << 1);
cupdate = towire_channel_update( cupdate = towire_channel_update(
tmpctx, sig, &peer->short_channel_ids[LOCAL], timestamp, flags, tmpctx, sig, &peer->short_channel_ids[LOCAL], timestamp, flags,
peer->cltv_delta, peer->fee_base, peer->fee_per_satoshi, peer->cltv_delta, 1, peer->fee_base, peer->fee_per_satoshi);
peer->channel->view[LOCAL].feerate_per_kw);
msg = towire_hsm_cupdate_sig_req(tmpctx, cupdate); msg = towire_hsm_cupdate_sig_req(tmpctx, cupdate);

Loading…
Cancel
Save