2018-03-22 11:36:25 +01:00
|
|
|
#ifndef LIGHTNING_WALLET_WALLETRPC_H
|
|
|
|
#define LIGHTNING_WALLET_WALLETRPC_H
|
2017-06-20 17:15:25 +02:00
|
|
|
#include "config.h"
|
2020-07-15 07:31:49 +02:00
|
|
|
#include <common/json.h>
|
2017-06-20 17:15:25 +02:00
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
struct command;
|
2020-07-06 07:28:14 +02:00
|
|
|
struct json_stream;
|
|
|
|
struct utxo;
|
|
|
|
|
|
|
|
void json_add_utxos(struct json_stream *response,
|
|
|
|
struct wallet *wallet,
|
|
|
|
struct utxo **utxos);
|
2017-06-20 17:15:25 +02:00
|
|
|
|
2020-07-14 21:29:26 +02:00
|
|
|
/* We evaluate reserved timeouts lazily, so use this. */
|
|
|
|
bool is_reserved(const struct utxo *utxo, u32 current_height);
|
|
|
|
|
2018-03-22 11:36:25 +01:00
|
|
|
#endif /* LIGHTNING_WALLET_WALLETRPC_H */
|