From 7a5ce1db7d86ff5beb2bb33f028296bb82eaea3e Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 17:01:01 +0100 Subject: [PATCH] Remove unused parameter shaseed in handle_their_unilateral(..., const struct sha256 *shaseed, ...) --- onchaind/onchain.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onchaind/onchain.c b/onchaind/onchain.c index 576b138a2..8306b6578 100644 --- a/onchaind/onchain.c +++ b/onchaind/onchain.c @@ -1725,7 +1725,6 @@ static void handle_their_unilateral(const struct bitcoin_tx *tx, u32 tx_blockheight, const struct bitcoin_txid *txid, const struct secrets *secrets, - const struct sha256 *shaseed, const struct pubkey *remote_per_commitment_point, const struct pubkey *local_revocation_basepoint, const struct pubkey *local_payment_basepoint, @@ -2121,7 +2120,7 @@ int main(int argc, char *argv[]) } else if (commit_num == revocations_received(&shachain)) { status_trace("Their unilateral tx, old commit point"); handle_their_unilateral(tx, tx_blockheight, - &txid, &secrets, &shaseed, + &txid, &secrets, &old_remote_per_commit_point, &basepoints.revocation, &basepoints.payment, @@ -2137,7 +2136,7 @@ int main(int argc, char *argv[]) } else if (commit_num == revocations_received(&shachain) + 1) { status_trace("Their unilateral tx, new commit point"); handle_their_unilateral(tx, tx_blockheight, - &txid, &secrets, &shaseed, + &txid, &secrets, &remote_per_commit_point, &basepoints.revocation, &basepoints.payment,