Browse Source

chainparams: Move the BOLT2 quote to the chainparams where we set it

json-streaming
Christian Decker 6 years ago
parent
commit
2d7e603ac1
  1. 6
      bitcoin/chainparams.c
  2. 8
      wire/peer_wire.h

6
bitcoin/chainparams.c

@ -12,6 +12,12 @@ const struct chainparams networks[] = {
.cli = "bitcoin-cli", .cli = "bitcoin-cli",
.cli_args = NULL, .cli_args = NULL,
.dust_limit = 546, .dust_limit = 546,
/* BOLT #2:
*
* The sending node:
*...
* - MUST set `funding_satoshis` to less than 2^24 satoshi.
*/
.max_funding_satoshi = (1 << 24) - 1, .max_funding_satoshi = (1 << 24) - 1,
.max_payment_msat = 0xFFFFFFFFULL, .max_payment_msat = 0xFFFFFFFFULL,
/* "Lightning Charge Powers Developers & Blockstream Store" */ /* "Lightning Charge Powers Developers & Blockstream Store" */

8
wire/peer_wire.h

@ -29,12 +29,4 @@ bool extract_channel_id(const u8 *in_pkt, struct channel_id *channel_id);
* the network, as detailed within [BOLT #7] * the network, as detailed within [BOLT #7]
*/ */
#define CHANNEL_FLAGS_ANNOUNCE_CHANNEL 1 #define CHANNEL_FLAGS_ANNOUNCE_CHANNEL 1
/* BOLT #2:
*
* The sending node:
*...
* - MUST set `funding_satoshis` to less than 2^24 satoshi.
*/
#define MAX_FUNDING_SATOSHI ((1 << 24) - 1)
#endif /* LIGHTNING_WIRE_PEER_WIRE_H */ #endif /* LIGHTNING_WIRE_PEER_WIRE_H */

Loading…
Cancel
Save