From e0a48c2aa7b50391c200b414fbb4cdb1b08188b6 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Wed, 3 Aug 2022 16:15:26 -0400 Subject: [PATCH] am_opener unused --- openingd/common.c | 1 - openingd/common.h | 1 - openingd/dualopend.c | 5 +---- openingd/openingd.c | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/openingd/common.c b/openingd/common.c index c31bb7774..150b8faa5 100644 --- a/openingd/common.c +++ b/openingd/common.c @@ -19,7 +19,6 @@ bool check_config_bounds(const tal_t *ctx, struct amount_msat min_effective_htlc_capacity, const struct channel_config *remoteconf, const struct channel_config *localconf, - bool am_opener, bool option_anchor_outputs, char **err_reason) { diff --git a/openingd/common.h b/openingd/common.h index 838321867..99914cf7c 100644 --- a/openingd/common.h +++ b/openingd/common.h @@ -16,7 +16,6 @@ bool check_config_bounds(const tal_t *ctx, struct amount_msat min_effective_htlc_capacity, const struct channel_config *remoteconf, const struct channel_config *localconf, - bool am_opener, bool option_anchor_outputs, char **err_reason); diff --git a/openingd/dualopend.c b/openingd/dualopend.c index 1a418e100..c2de0716b 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -2260,7 +2260,6 @@ static void accepter_start(struct state *state, const u8 *oc2_msg) state->min_effective_htlc_capacity, &tx_state->remoteconf, &tx_state->localconf, - false, true, /* v2 means we use anchor outputs */ &err_reason)) { negotiation_failed(state, "%s", err_reason); @@ -2966,7 +2965,7 @@ static void opener_start(struct state *state, u8 *msg) state->min_effective_htlc_capacity, &tx_state->remoteconf, &tx_state->localconf, - true, true, /* v2 means we use anchor outputs */ + true, /* v2 means we use anchor outputs */ &err_reason)) { negotiation_failed(state, "%s", err_reason); return; @@ -3217,7 +3216,6 @@ static void rbf_local_start(struct state *state, u8 *msg) state->min_effective_htlc_capacity, &tx_state->remoteconf, &tx_state->localconf, - false, true, /* v2 means we use anchor outputs */ &err_reason)) { open_err_warn(state, "%s", err_reason); @@ -3354,7 +3352,6 @@ static void rbf_remote_start(struct state *state, const u8 *rbf_msg) state->min_effective_htlc_capacity, &tx_state->remoteconf, &tx_state->localconf, - false, true, /* v2 means we use anchor outputs */ &err_reason)) { open_err_warn(state, "%s", err_reason); diff --git a/openingd/openingd.c b/openingd/openingd.c index fd9d5fa84..d2ae1cada 100644 --- a/openingd/openingd.c +++ b/openingd/openingd.c @@ -458,7 +458,6 @@ static u8 *funder_channel_start(struct state *state, u8 channel_flags) state->min_effective_htlc_capacity, &state->remoteconf, &state->localconf, - true, feature_negotiated(state->our_features, state->their_features, OPT_ANCHOR_OUTPUTS), @@ -974,7 +973,6 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg) state->min_effective_htlc_capacity, &state->remoteconf, &state->localconf, - false, feature_negotiated(state->our_features, state->their_features, OPT_ANCHOR_OUTPUTS),