mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
fixup! masterd: Disable a channel when channeld fails
This commit is contained in:
committed by
Rusty Russell
parent
2e5047f74b
commit
6cfc0a6275
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user