daemon/watch.c: move list of watched txs/txouts into struct topology.

This weans daemon/watch.c off relying on struct lightningd_state.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-03-02 22:51:49 +10:30
parent d34dade8bb
commit 923526baf3
8 changed files with 151 additions and 119 deletions

View File

@@ -110,10 +110,6 @@ struct lightningd_state {
/* This is us. */
struct pubkey id;
/* Transactions/txos we are watching. */
struct txwatch_hash txwatches;
struct txowatch_hash txowatches;
/* Our tame bitcoind. */
struct bitcoind *bitcoind;