From 2fbe3161a01e18f276809afbffbc1667b7adab63 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 29 Jan 2018 12:22:12 +1030 Subject: [PATCH] onchaind: remove unnecessary num_outputs arg from onchain_unwatch_tx Signed-off-by: Rusty Russell --- onchaind/onchain.c | 2 +- onchaind/onchain_wire.csv | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/onchaind/onchain.c b/onchaind/onchain.c index c40312c88..b3b039a46 100644 --- a/onchaind/onchain.c +++ b/onchaind/onchain.c @@ -508,7 +508,7 @@ static void unwatch_tx(const struct bitcoin_tx *tx) bitcoin_txid(tx, &txid); - msg = towire_onchain_unwatch_tx(tx, &txid, tal_count(tx->output)); + msg = towire_onchain_unwatch_tx(tx, &txid); wire_sync_write(REQ_FD, take(msg)); } diff --git a/onchaind/onchain_wire.csv b/onchaind/onchain_wire.csv index d30ef3fd7..7cd9d285d 100644 --- a/onchaind/onchain_wire.csv +++ b/onchaind/onchain_wire.csv @@ -62,7 +62,6 @@ onchain_depth,,depth,u32 # onchaind->master: We don't want to watch this tx, or its outputs onchain_unwatch_tx,5006 onchain_unwatch_tx,,txid,struct bitcoin_txid -onchain_unwatch_tx,,num_outputs,u32 # master->onchaind: We know HTLC preimage onchain_known_preimage,5007