2018-03-22 10:36:25 +00:00
|
|
|
#ifndef LIGHTNING_WALLET_WALLETRPC_H
|
|
|
|
#define LIGHTNING_WALLET_WALLETRPC_H
|
2017-06-20 16:15:25 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2023-10-26 04:32:12 +01:00
|
|
|
enum addrtype {
|
|
|
|
/* Deprecated! */
|
|
|
|
ADDR_P2SH_SEGWIT = 1,
|
|
|
|
ADDR_BECH32 = 2,
|
|
|
|
ADDR_P2TR = 4,
|
|
|
|
ADDR_ALL = (ADDR_P2SH_SEGWIT + ADDR_BECH32 + ADDR_P2TR)
|
|
|
|
};
|
|
|
|
|
2020-07-06 06:28:14 +01:00
|
|
|
struct utxo;
|
|
|
|
|
2020-07-14 20:29:26 +01:00
|
|
|
/* We evaluate reserved timeouts lazily, so use this. */
|
|
|
|
bool is_reserved(const struct utxo *utxo, u32 current_height);
|
|
|
|
|
2023-10-26 04:32:12 +01:00
|
|
|
bool WARN_UNUSED_RESULT newaddr_inner(struct command *cmd, struct pubkey *pubkey,
|
|
|
|
enum addrtype addrtype);
|
2018-03-22 10:36:25 +00:00
|
|
|
#endif /* LIGHTNING_WALLET_WALLETRPC_H */
|