fixup! masterd: Disable a channel when channeld fails

This commit is contained in:
Christian Decker
2018-01-25 11:44:30 +01:00
committed by Rusty Russell
parent 2e5047f74b
commit 6cfc0a6275

View File

@@ -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)