|
@ -9,6 +9,7 @@ |
|
|
#include <ccan/typesafe_cb/typesafe_cb.h> |
|
|
#include <ccan/typesafe_cb/typesafe_cb.h> |
|
|
|
|
|
|
|
|
struct bitcoin_tx; |
|
|
struct bitcoin_tx; |
|
|
|
|
|
struct block; |
|
|
struct lightningd_state; |
|
|
struct lightningd_state; |
|
|
|
|
|
|
|
|
enum watch_result { |
|
|
enum watch_result { |
|
@ -35,6 +36,7 @@ struct txowatch { |
|
|
enum watch_result (*cb)(struct peer *peer, |
|
|
enum watch_result (*cb)(struct peer *peer, |
|
|
const struct bitcoin_tx *tx, |
|
|
const struct bitcoin_tx *tx, |
|
|
size_t input_num, |
|
|
size_t input_num, |
|
|
|
|
|
const struct block *block, |
|
|
void *cbdata); |
|
|
void *cbdata); |
|
|
|
|
|
|
|
|
void *cbdata; |
|
|
void *cbdata; |
|
@ -119,6 +121,7 @@ struct txowatch *watch_txo_(const tal_t *ctx, |
|
|
enum watch_result (*cb)(struct peer *peer, |
|
|
enum watch_result (*cb)(struct peer *peer, |
|
|
const struct bitcoin_tx *tx, |
|
|
const struct bitcoin_tx *tx, |
|
|
size_t input_num, |
|
|
size_t input_num, |
|
|
|
|
|
const struct block *block, |
|
|
void *), |
|
|
void *), |
|
|
void *cbdata); |
|
|
void *cbdata); |
|
|
|
|
|
|
|
@ -128,7 +131,8 @@ struct txowatch *watch_txo_(const tal_t *ctx, |
|
|
(cb), (cbdata), \ |
|
|
(cb), (cbdata), \ |
|
|
struct peer *, \ |
|
|
struct peer *, \ |
|
|
const struct bitcoin_tx *, \ |
|
|
const struct bitcoin_tx *, \ |
|
|
size_t), \ |
|
|
size_t, \ |
|
|
|
|
|
const struct block *block), \ |
|
|
(cbdata)) |
|
|
(cbdata)) |
|
|
|
|
|
|
|
|
void txwatch_fire(struct chain_topology *topo, |
|
|
void txwatch_fire(struct chain_topology *topo, |
|
@ -137,7 +141,8 @@ void txwatch_fire(struct chain_topology *topo, |
|
|
|
|
|
|
|
|
void txowatch_fire(struct chain_topology *topo, |
|
|
void txowatch_fire(struct chain_topology *topo, |
|
|
const struct txowatch *txow, |
|
|
const struct txowatch *txow, |
|
|
const struct bitcoin_tx *tx, size_t input_num); |
|
|
const struct bitcoin_tx *tx, size_t input_num, |
|
|
|
|
|
const struct block *block); |
|
|
|
|
|
|
|
|
bool watching_txid(const struct chain_topology *topo, |
|
|
bool watching_txid(const struct chain_topology *topo, |
|
|
const struct sha256_double *txid); |
|
|
const struct sha256_double *txid); |
|
|