Skip to content

Commit

Permalink
Remove unused adjust_feerange(...) parameters: struct crypto_state *c…
Browse files Browse the repository at this point in the history
…s + const struct channel_id *channel_id
  • Loading branch information
practicalswift authored and rustyrussell committed Aug 1, 2018
1 parent 2627d0c commit 2c7170b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions closingd/closing.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,7 @@ static void init_feerange(struct feerange *feerange,
feerange->higher_side == LOCAL ? "local" : "remote");
}

static void adjust_feerange(struct crypto_state *cs,
const struct channel_id *channel_id,
struct feerange *feerange,
static void adjust_feerange(struct feerange *feerange,
u64 offer, enum side side)
{
/* BOLT #2:
Expand Down Expand Up @@ -515,13 +513,12 @@ int main(int argc, char *argv[])
init_feerange(&feerange, commitment_fee, offer);

/* Apply (and check) funder offer now. */
adjust_feerange(&cs, &channel_id, &feerange, offer[funder], funder);
adjust_feerange(&feerange, offer[funder], funder);

/* Now any extra rounds required. */
while (offer[LOCAL] != offer[REMOTE]) {
/* Still don't agree: adjust feerange based on previous offer */
adjust_feerange(&cs, &channel_id,
&feerange,
adjust_feerange(&feerange,
offer[!whose_turn], !whose_turn);

if (whose_turn == LOCAL) {
Expand Down

0 comments on commit 2c7170b

Please sign in to comment.