diff --git a/state.h b/state.h index e2595db81..256592806 100644 --- a/state.h +++ b/state.h @@ -369,8 +369,7 @@ const struct bitcoin_tx *bitcoin_steal(const tal_t *ctx, struct bitcoin_event *btc); /* Create our commit tx */ -const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, - const struct peer *peer); +const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, struct peer *peer); /* Create a HTLC refund collection */ const struct bitcoin_tx *bitcoin_htlc_timeout(const tal_t *ctx, diff --git a/test/test_state_coverage.c b/test/test_state_coverage.c index f5f1141ef..531baec65 100644 --- a/test/test_state_coverage.c +++ b/test/test_state_coverage.c @@ -894,8 +894,7 @@ const struct bitcoin_tx *bitcoin_steal(const tal_t *ctx, return bitcoin_tx("steal"); } -const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, - const struct peer *peer) +const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, struct peer *peer) { return bitcoin_tx("our commit"); }