lightningd: fix up typesafe-cb bitcoind_getfilteredblock

`const struct filteredblock *` everywhere, as the typesafe_cb_preargs
macro required.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-08-08 13:54:33 +09:30
parent 5e36257375
commit 69b7ef1508
5 changed files with 7 additions and 8 deletions

View File

@@ -787,7 +787,7 @@ void bitcoind_gettxout(struct bitcoind *bitcoind,
* process the various steps. */
struct filteredblock_call {
struct list_node list;
void (*cb)(struct bitcoind *bitcoind, struct filteredblock *fb,
void (*cb)(struct bitcoind *bitcoind, const struct filteredblock *fb,
void *arg);
void *arg;
@@ -914,7 +914,7 @@ process_getfiltered_block_final(struct bitcoind *bitcoind,
void bitcoind_getfilteredblock_(struct bitcoind *bitcoind, u32 height,
void (*cb)(struct bitcoind *bitcoind,
struct filteredblock *fb,
const struct filteredblock *fb,
void *arg),
void *arg)
{