daemon/watch: API to watch various bitcoin transactions.

This uses the functions in bitcoind to provide callbacks when various
things happen.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:41:49 +10:30
parent 5ec8ff91e4
commit e9237f94b1
7 changed files with 347 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ static struct peer *new_peer(struct lightningd_state *state,
peer->addr.protocol = addr_protocol;
peer->io_data = NULL;
peer->secrets = NULL;
list_head_init(&peer->watches);
/* FIXME: Attach IO logging for this peer. */
tal_add_destructor(peer, destroy_peer);