mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
e10cde3516
We no longer use it to reference chainparams, so we can remove it completely.
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
#ifndef LIGHTNING_BITCOIN_CHAINPARAMS_H
|
|
#define LIGHTNING_BITCOIN_CHAINPARAMS_H
|
|
|
|
#include "config.h"
|
|
#include <bitcoin/block.h>
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct chainparams {
|
|
const char *network_name;
|
|
const char *bip173_name;
|
|
const struct bitcoin_blkid genesis_blockhash;
|
|
const int rpc_port;
|
|
const char *cli;
|
|
const char *cli_args;
|
|
const u64 dust_limit;
|
|
const u64 max_funding_satoshi;
|
|
const u64 max_payment_msat;
|
|
const u32 when_lightning_became_cool;
|
|
|
|
/* Whether this is a test network or not */
|
|
const bool testnet;
|
|
};
|
|
|
|
/**
|
|
* chainparams_for_network - Look up blockchain parameters by its name
|
|
*/
|
|
const struct chainparams *chainparams_for_network(const char *network_name);
|
|
|
|
/**
|
|
* chainparams_by_bip173 - Helper to get a network by its bip173 name
|
|
*
|
|
* This lets us decode BOLT11 addresses.
|
|
*/
|
|
const struct chainparams *chainparams_by_bip173(const char *bip173_name);
|
|
|
|
/**
|
|
* chainparams_by_chainhash - Helper to get a network by its genesis blockhash
|
|
*/
|
|
const struct chainparams *chainparams_by_chainhash(const struct bitcoin_blkid *chain_hash);
|
|
|
|
#endif /* LIGHTNING_BITCOIN_CHAINPARAMS_H */
|