mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
common: channel_type_accept doesn't use their_features
; remove parameter.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
654a45dad6
commit
a943a53658
4 changed files with 4 additions and 8 deletions
|
@ -141,8 +141,7 @@ struct channel_type *channel_type_from(const tal_t *ctx,
|
|||
|
||||
struct channel_type *channel_type_accept(const tal_t *ctx,
|
||||
const u8 *t,
|
||||
const struct feature_set *our_features,
|
||||
const u8 *their_features)
|
||||
const struct feature_set *our_features)
|
||||
{
|
||||
struct channel_type *ctype, proposed;
|
||||
/* Need to copy since we're going to blank variant bits for equality. */
|
||||
|
|
|
@ -41,8 +41,7 @@ bool channel_type_eq(const struct channel_type *a,
|
|||
/* Return channel_type if this is acceptable, otherwise NULL */
|
||||
struct channel_type *channel_type_accept(const tal_t *ctx,
|
||||
const u8 *t,
|
||||
const struct feature_set *our_features,
|
||||
const u8 *their_features);
|
||||
const struct feature_set *our_features);
|
||||
|
||||
/* Return an array of feature strings indicating channel type. */
|
||||
const char **channel_type_name(const tal_t *ctx, const struct channel_type *t);
|
||||
|
|
|
@ -2422,8 +2422,7 @@ static void accepter_start(struct state *state, const u8 *oc2_msg)
|
|||
state->channel_type =
|
||||
channel_type_accept(state,
|
||||
open_tlv->channel_type,
|
||||
state->our_features,
|
||||
state->their_features);
|
||||
state->our_features);
|
||||
if (!state->channel_type) {
|
||||
negotiation_failed(state,
|
||||
"Did not support channel_type %s",
|
||||
|
|
|
@ -943,8 +943,7 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
|
|||
if (open_tlvs->channel_type) {
|
||||
open_channel_had_channel_type = true;
|
||||
state->channel_type = channel_type_accept(
|
||||
state, open_tlvs->channel_type, state->our_features,
|
||||
state->their_features);
|
||||
state, open_tlvs->channel_type, state->our_features);
|
||||
if (!state->channel_type) {
|
||||
negotiation_failed(state,
|
||||
"Did not support channel_type %s",
|
||||
|
|
Loading…
Add table
Reference in a new issue