Skip to main content

Module constants

Module constants 

Source
Expand description

Application-level constants.

Constants§

CHANNEL_MAX_FUNDING_SATS
User nodes and the LSP will reject new inbound channels with total channel value larger than this value in satoshis.
DEFAULT_PAYMENTS_BATCH_SIZE
FORCE_CLOSE_AVOIDANCE_MAX_FEE_SATS
See: lightning::util::config::ChannelConfig::force_close_avoidance_max_fee_satoshis
FREE_LIQUIDITY_SAT
The amount of liquidity (in sats) that Lexe supplies to us for free, which we are not expected to pay interest on. This is also the amount of liquidity Lexe’s LSP will supply to a user in their first JIT zeroconf channel open.
GS_ROOT_R4_CA_CERT_DER
GlobalSign Root R4 (ECDSA), used by googleapis.com and dns.google.
GTS_ROOT_R1_CA_CERT_DER
Google Trust Services Root R1 (RSA), used by googleapis.com and dns.google.
GTS_ROOT_R2_CA_CERT_DER
Google Trust Services Root R2 (RSA), used by googleapis.com and dns.google.
GTS_ROOT_R3_CA_CERT_DER
Google Trust Services Root R3 (ECDSA), used by googleapis.com and dns.google.
GTS_ROOT_R4_CA_CERT_DER
Google Trust Services Root R4 (ECDSA), used by googleapis.com and dns.google.
IMPORTANT_PERSIST_RETRIES
The default number of persist retries for important objects.
LDK_DUST_LIMIT_SATS
Our dust limit for e.g. our channel close txo’s. If our channel balance, after paying close fees, is <= this value, we will not get a txo and this value is lost (goes to fees).
LEXE_DUMMY_CA_CERT_DER
The Lexe dummy CA used in local testing and development.
LEXE_PROD_CA_CERT_DER
The Lexe CA responsible for lexe.app and .lx.
LEXE_STAGING_CA_CERT_DER
The Lexe CA responsible for staging.lexe.app and staging.lx.
LSP_RESERVE_PROP_PPM
User nodes require the LSP to reserve this proportion of the channel value (in millionths) as potential punishment. LDK clamps the actual reserve amount to at least 1000 sats. Since the LSP can’t send this amount to the user, the user’s inbound liquidity is also reduced by this amount. Used for: lightning::util::config::ChannelHandshakeConfig::their_channel_reserve_proportional_millionths
LSP_USERNODE_CHANNEL_MIN_FUNDING_SATS
The LSP will only accept new inbound channels with channel value at or above this limit in satoshis.
MAINNET_ESPLORA_WHITELIST
MAINNET_LEXE_BLOCKSTREAM_ESPLORA
MAINNET_LEXE_MEMPOOL_ESPLORA
MAINNET_PUBLIC_BLOCKSTREAM_ESPLORA
MAX_FLOW_TIMEOUT
Computing max_flow takes ~30s at 10 iterations and ~50s at 17 iterations. Set LayerConfig::handling_timeout and reqwest::RequestBuilder::timeout to this value to ensure that callers can get a response. See compute_max_flow_to_recipient for more details.
MAX_LIQUIDITY_SAT
The maximum amount of liquidity that Lexe will supply to a user in one tx.
MAX_PAYMENTS_BATCH_SIZE
Reject backend requests for payments that are too large.
MAX_PAYMENT_NOTE_BYTES
Reject payment notes that are too large.
NODE_PROVISION_DNS_SUFFIX
NODE_RUN_DNS
Fake DNS names used by the reverse proxy to route requests to user nodes. Provision mode uses “{mr_short}.provision.lexe.app” and run mode uses “run.lexe.app”. These DNS names don’t actually resolve.
NODE_RUN_URL
RELEASE_WINDOW_SIZE
This is both:
TESTNET3_ESPLORA_WHITELIST
TESTNET3_LEXE_BLOCKSTREAM_ESPLORA
TESTNET3_LEXE_ESPLORA
TESTNET3_LEXE_MEMPOOL_ESPLORA
TESTNET3_LTBL_ESPLORA
TESTNET3_PUBLIC_BLOCKSTREAM_ESPLORA
USER_NODE_SHUTDOWN_TIMEOUT
The amount of time user node tasks have to finish after a graceful shutdown signal is received before the task is forced to exit.
USER_RUNNER_SHUTDOWN_TIMEOUT
The amount of time user the user runner has to finish after a graceful shutdown signal is received before the program is forced to exit.
YANKED_NODE_MEASUREMENTS
YANKED_NODE_VERSIONS
If a node release needs to be yanked, add its semver version and measurement here. See node::approved_versions for more info.

Functions§

node_provision_dns