From 0046ace3188ac03f78a1226d9bff64fa939461fa Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 16:57:45 +0100 Subject: [PATCH] Remove unused parameter topo in txowatch_fire(struct chain_topology *topo, ...) --- lightningd/chaintopology.c | 2 +- lightningd/watch.c | 5 ++--- lightningd/watch.h | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index 3b50744c3..ebf633da0 100644 --- a/lightningd/chaintopology.c +++ b/lightningd/chaintopology.c @@ -71,7 +71,7 @@ static void filter_block_txs(struct chain_topology *topo, struct block *b) txo = txowatch_hash_get(&topo->txowatches, &out); if (txo) - txowatch_fire(topo, txo, tx, j, b); + txowatch_fire(txo, tx, j, b); } satoshi_owned = 0; diff --git a/lightningd/watch.c b/lightningd/watch.c index ed7dff774..a1e599eed 100644 --- a/lightningd/watch.c +++ b/lightningd/watch.c @@ -241,11 +241,10 @@ void txwatch_fire(struct chain_topology *topo, txw = txwatch_hash_get(&topo->txwatches, &txid); if (txw) - txw_fire(topo, txw, tx, depth); + txw_fire(txw, tx, depth); } -void txowatch_fire(struct chain_topology *topo, - const struct txowatch *txow, +void txowatch_fire(const struct txowatch *txow, const struct bitcoin_tx *tx, size_t input_num, const struct block *block) diff --git a/lightningd/watch.h b/lightningd/watch.h index 90238eecf..b23d3f9a8 100644 --- a/lightningd/watch.h +++ b/lightningd/watch.h @@ -73,8 +73,7 @@ void txwatch_fire(struct chain_topology *topo, const struct bitcoin_tx *tx, unsigned int depth); -void txowatch_fire(struct chain_topology *topo, - const struct txowatch *txow, +void txowatch_fire(const struct txowatch *txow, const struct bitcoin_tx *tx, size_t input_num, const struct block *block);