Browse Source

fixup! masterd: Disable a channel when channeld fails

ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
6cfc0a6275
  1. 3
      lightningd/peer_control.c

3
lightningd/peer_control.c

@ -24,6 +24,7 @@
#include <errno.h>
#include <fcntl.h>
#include <gossipd/gen_gossip_wire.h>
#include <gossipd/routing.h>
#include <hsmd/capabilities.h>
#include <hsmd/gen_hsm_client_wire.h>
#include <inttypes.h>
@ -2101,7 +2102,7 @@ static bool peer_start_channeld(struct peer *peer,
if (peer->ld->config.ignore_fee_limits)
log_debug(peer->log, "Ignoring fee limits!");
peer->direction = pubkey_cmp(&peer->ld->id, &peer->id) > 0;
peer->direction = get_channel_direction(&peer->ld->id, &peer->id);
initmsg = towire_channel_init(tmpctx,
&get_chainparams(peer->ld)

Loading…
Cancel
Save