mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
21 lines
542 B
C
21 lines
542 B
C
#ifndef LIGHTNING_WALLET_WALLETRPC_H
|
|
#define LIGHTNING_WALLET_WALLETRPC_H
|
|
#include "config.h"
|
|
|
|
enum addrtype {
|
|
/* Deprecated! */
|
|
ADDR_P2SH_SEGWIT = 1,
|
|
ADDR_BECH32 = 2,
|
|
ADDR_P2TR = 4,
|
|
ADDR_ALL = (ADDR_P2SH_SEGWIT + ADDR_BECH32 + ADDR_P2TR)
|
|
};
|
|
|
|
struct utxo;
|
|
|
|
/* We evaluate reserved timeouts lazily, so use this. */
|
|
bool is_reserved(const struct utxo *utxo, u32 current_height);
|
|
|
|
bool WARN_UNUSED_RESULT newaddr_inner(struct command *cmd, struct pubkey *pubkey,
|
|
enum addrtype addrtype);
|
|
#endif /* LIGHTNING_WALLET_WALLETRPC_H */
|