mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -88,8 +88,6 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
|
||||
ld->dstate.portnum = DEFAULT_PORT;
|
||||
ld->dstate.testnet = true;
|
||||
timers_init(&ld->dstate.timers, time_mono());
|
||||
txwatch_hash_init(&ld->dstate.txwatches);
|
||||
txowatch_hash_init(&ld->dstate.txowatches);
|
||||
list_head_init(&ld->dstate.wallet);
|
||||
list_head_init(&ld->dstate.addresses);
|
||||
ld->dstate.dev_never_routefail = false;
|
||||
|
||||
Reference in New Issue
Block a user