mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
subds: remove "ignore error" from old LND nodes.
This was put in late 2019, and @t-bast says Eclair doesn't ignore their errors and has had no issues. It also conflicts with https://github.com/lightning/bolts/pull/932 which suggests you *should* fail when you receive an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -112,7 +112,6 @@ void handle_gossip_msg(struct per_peer_state *pps, const u8 *msg TAKES)
|
||||
|
||||
bool handle_peer_gossip_or_error(struct per_peer_state *pps,
|
||||
const struct channel_id *channel_id,
|
||||
bool soft_error,
|
||||
const u8 *msg TAKES)
|
||||
{
|
||||
char *err;
|
||||
@@ -150,8 +149,7 @@ bool handle_peer_gossip_or_error(struct per_peer_state *pps,
|
||||
goto handled;
|
||||
|
||||
/* We hang up when a warning is received. */
|
||||
peer_failed_received_errmsg(pps, err, channel_id,
|
||||
soft_error || warning);
|
||||
peer_failed_received_errmsg(pps, err, channel_id, warning);
|
||||
|
||||
goto handled;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ bool is_wrong_channel(const u8 *msg, const struct channel_id *expected,
|
||||
* handle_peer_gossip_or_error - simple handler for all the above cases.
|
||||
* @pps: per-peer state.
|
||||
* @channel_id: the channel id of the current channel.
|
||||
* @soft_error: tell lightningd that incoming error is non-fatal.
|
||||
* @msg: the peer message (only taken if returns true).
|
||||
*
|
||||
* This returns true if it handled the packet: a gossip packet (forwarded
|
||||
@@ -67,7 +66,6 @@ bool is_wrong_channel(const u8 *msg, const struct channel_id *expected,
|
||||
*/
|
||||
bool handle_peer_gossip_or_error(struct per_peer_state *pps,
|
||||
const struct channel_id *channel_id,
|
||||
bool soft_error,
|
||||
const u8 *msg TAKES);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user