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"
|
|
|
|
|
2023-10-26 14:02:12 +10:30
|
|
|
enum addrtype {
|
|
|
|
ADDR_BECH32 = 2,
|
|
|
|
ADDR_P2TR = 4,
|
2024-01-25 10:58:52 +10:30
|
|
|
ADDR_ALL = (ADDR_BECH32 + ADDR_P2TR)
|
2023-10-26 14:02:12 +10:30
|
|
|
};
|
|
|
|
|
2020-07-06 14:58:14 +09:30
|
|
|
struct utxo;
|
|
|
|
|
2020-07-15 04:59:26 +09:30
|
|
|
/* We evaluate reserved timeouts lazily, so use this. */
|
|
|
|
bool is_reserved(const struct utxo *utxo, u32 current_height);
|
|
|
|
|
2023-10-26 14:02:12 +10:30
|
|
|
bool WARN_UNUSED_RESULT newaddr_inner(struct command *cmd, struct pubkey *pubkey,
|
|
|
|
enum addrtype addrtype);
|
2018-03-22 11:36:25 +01:00
|
|
|
#endif /* LIGHTNING_WALLET_WALLETRPC_H */
|