daemon/chaintopology: use struct topology for more functions, not 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 923526baf3
commit 61e576ef12
11 changed files with 166 additions and 138 deletions

View File

@@ -42,7 +42,7 @@ struct peer *find_peer(struct lightningd_state *dstate, const struct pubkey *id)
FIXME_IMPLEMENT();
}
size_t get_tx_depth(struct lightningd_state *dstate,
size_t get_tx_depth(const struct topology *topo,
const struct sha256_double *txid)
{
FIXME_IMPLEMENT();
@@ -54,7 +54,7 @@ void debug_dump_peers(struct lightningd_state *dstate)
FIXME_IMPLEMENT();
}
u32 get_block_height(struct lightningd_state *dstate)
u32 get_block_height(const struct topology *topo)
{
/* FIXME_IMPLEMENT(); */
return 0;