watch: use chaintopology

Rather than polling for interesting bitcoin txs via importaddress, we use
the chain topology to register our interest directly.x 

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-04-24 19:48:35 +09:30
parent 6e39b0a642
commit 7b4de8e445
6 changed files with 126 additions and 178 deletions

View File

@@ -274,9 +274,6 @@ int main(int argc, char *argv[])
/* Set up node ID and private key. */
secrets_init(dstate);
/* Create timer to do watches. */
setup_watch_timer(dstate);
/* Initialize block topology. */
setup_topology(dstate);