Skip to main content

Module constants

Module constants 

Source
Expand description

Application-level constants.

Modules§

timeout
Timeout constants and hierarchies. Timeout constants, organized into nested modules named after the API trait, service, or struct whose timeouts it holds.

Constants§

DEFAULT_PAYMENTS_BATCH_SIZE
FIRST_USER_API_NODE_VERSION
The first node version to serve the /user/v1/provision endpoint, older node versions serve only /app/provision.
FORCE_CLOSE_AVOIDANCE_MAX_FEE_SATS
Unconditional extra fee the LSP<->user channel funder will pay for coop-close in order to avoid a potential force-close due to fee disagreement.
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.
HBA_CLAIM_MIN_BALANCE_SATS
The minimum total wallet balance (in sats) required to claim or update a custom Human Bitcoin Address. Deters mass-claiming of usernames.
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_PROPORTION
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_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
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