Every option
Running in production12.5.13+

Every option

Every option lotusd -help shows, by area, with its default.

The 514 options lotusd -help shows in 12.5.13, by area. Each line is the node's own help text, with its default. Configuration explains the options most operators need, with examples; this page is the complete list. Options for tests and debugging are left out: lotusd -help -help-debug prints them.

Every option is written here as on the command line (-name). In lotus.conf, write it without the dash: name=value. A boolean option takes 0 or 1, and -noname is the same as -name=0.

Storage, chain and general #

OptionMeaning
-?Print this help message and exit
-alertnotify=<cmd>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)
-assumevalid=<hex>If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: 000000000008e3132221cd11676e410bda33bee14103efc0fed29feb30975ed2, testnet: 0000000004e5242ccdd7ff82f9aa180c6bfdb1a657882c5f660e9f9d5378e446)
-batchschnorrVerify the Schnorr signatures of blocks and of -parallelmempool checks in batches (faster; the same blocks and transactions are valid) (default: 1)
-blocknotify=<cmd>Execute command when the best block changes (%s in cmd is replaced by block hash)
-blockreconstructionextratxn=<n>Extra transactions to keep in memory for compact block reconstructions (default: 100)
-blocksdir=<dir>Specify directory to hold blocks subdirectory for *.dat files (default: <datadir>)
-blockstore=<flat|sqlite>Where raw blocks, undo data and block filters are stored: flat blk/rev/fltr files, or one SQLite database <blocksdir>/blocks/blocks.sqlite. With sqlite, an existing flat datadir is converted in place at start (no resync); -blockstore=flat starts without converting (default: sqlite)
-chainstateflushinterval=<n>Once synced, write the chain state (UTXO cache) to disk at least every <n> minutes. A process that is killed restarts from its last write and re-validates the blocks after it. (1 to 1440, default: 10)
-conf=<file>Specify path to read-only configuration file. Relative paths will be prefixed by datadir location. (default: lotus.conf)
-daemonRun in the background as a daemon and accept commands
-datadir=<dir>Specify data directory
-dbcache=<n>Set database cache size in MiB (4 to 16384, default: 1024)
-ecashUse the eCash prefixes and units (default: false)
-enablerttReal Time Targeting, a node policy under merged mining v2: park a block that arrives too soon after the previous ones for its proof of work, until the time at which it would have met its real time target (doc/asic-merged-mining.md 1.5b; default: 1, 0 on regtest)
-finalizationdelay=<n>Set the minimum amount of time to wait between a block header reception and the block finalization, and after start-up before any block is finalized. Unit is seconds (default: 2400, 40 minutes, about the coinbase maturity of 20 blocks from Napoleon). Node policy: run the same value as the rest of the network, a node that finalizes sooner or later than its peers can be split from them by a deep reorganization
-includeconf=<file>Specify additional configuration file, relative to the -datadir path (only useable from configuration file, not command line)
-loadblock=<file>Imports blocks from external file on startup
-maxmempoolunpaid=<n>Keep at most <n> unpaid data bytes in the mempool in transactions waiting for the free data bytes of a block (2,000 a block). Above it, the waiting transactions the block template takes last are evicted for one that pays a higher fee rate, or it is refused (mempool-unpaid-full): a transaction that burns 10,000 satoshis per data byte does not wait (default: 200000)
-maxreorgdepth=<n>Configure at what depth blocks are considered final (default: 10). Use -1 to disable.
-mempoolunpaidexpiry=<n>Do not keep a transaction waiting for the free data bytes of a block in the mempool longer than <n> hours, at most -mempoolexpiry; contract spends keep -covenantmempoolexpiry and a transaction with a current notary receipt stays (1 to 100000, default: 6)
-memreleasefree=<n>Give back to the system the memory the allocator holds free once it is above <n> MiB (glibc malloc only; looked at every 15 seconds; 0 = never; default: 128)
-par=<n>Set the number of script verification threads (-8 to 15, 0 = auto, <0 = leave that many cores free, default: 0)
-pid=<file>Specify pid file. Relative paths will be prefixed by a net-specific datadir location. (default: lotusd.pid)
-prune=<n>Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >=550 = automatically prune block files to stay under the specified target size in MiB)
-reindexRebuild chain state and block index from the blk*.dat files on disk
-reindex-chainstateRebuild chain state from the currently indexed blocks. When in pruning mode or if blocks on disk might be corrupted, use full -reindex instead.
-settings=<file>Specify path to dynamic settings data file. Can be disabled with -nosettings. File is written at runtime and not meant to be edited by users (use lotus.conf instead for custom settings). Relative paths will be prefixed by datadir location. (default: settings.json)
-startupnotify=<cmd>Execute command on startup.
-syspermsCreate new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)
-usecashaddrUse Cash Address for destination encoding instead of base58 (activate by default on Jan, 14)
-useecashprefixUse the eCash prefixes (default: false)

Chain selection #

OptionMeaning
-chain=<chain>Use the chain <chain> (default: main). Allowed values: main, test, regtest, napoleontest (our test network with the Napoleon upgrade active from genesis, doc/testnet-napoleon.md)
-napoleontestnetUse the Napoleon test network: our own testnet with the Napoleon upgrade active from genesis, data in <datadir>/napoleontest, every port = mainnet port + 10000 (RPC/REST 20604, P2P 20605, stratum 20633, browser-miner WebSocket 13335, public NNG 20610/20611). Equivalent to -chain=napoleontest.

Network connections #

OptionMeaning
-addnode=<ip>Add a node to connect to and attempt to keep the connection open (see the addnode RPC command help for more info)
-asmap=<file>Specify asn mapping used for bucketing of the peers (default: ip_asn.map). Relative paths will be prefixed by the net-specific datadir location.
-bantime=<n>Default duration (in seconds) of manually configured bans (default: 86400)
-bind=<addr>[:<port>][=onion]Bind to given address and always listen on it (default: 0.0.0.0). Use [host]:port notation for IPv6. Append =onion to tag any incoming connections to that address and port as incoming Tor connections (default: 127.0.0.1:10606=onion, testnet: 127.0.0.1:11606=onion, regtest: 127.0.0.1:12606=onion)
-connect=<ip>Connect only to the specified node(s); -connect=0 disables automatic connections (the rules for this peer are the same as for -addnode)
-dnsAllow DNS lookups for -addnode, -seednode and -connect (default: 1)
-dnsseedQuery for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect used)
-externalip=<ip>Specify your own public address
-finalityunpaidreach=<n>With -finalitykey, sign a transaction that waits for the free data bytes of a block (or has an unconfirmed ancestor that does) only once it is within the free bytes of the next <n> blocks, in the block template's order; looked at again on each new block (0 to 50, default: 2)
-fixedseedsAllow fixed seeds if DNS seeds don't provide peers (default: 1)
-forcednsseedAlways query for peer addresses via DNS lookup (default: 0)
-listenAccept connections from outside (default: 1 if no -proxy or -connect)
-listenonionAutomatically create Tor onion service (default: 1)
-maxchildchainpeers=<n>Keep at most <n> inbound peers that serve a child chain of this network (outbound ones: 2, apart); manual (-addnode, -connect) and noban peers are not counted. When full, a newcomer that brings child chain work this node did not hold replaces the peer idle the longest; any other is disconnected, not discouraged (default: 4)
-maxconnections=<n>Maintain at most <n> automatic connections to peers (default: 4096): inbound connections and the outbound ones the node picks itself (full-relay: min(16, <n>); block-relay-only: what is left of <n>, at most 2; one short feeler); inbound gets what the outbound slots leave. As in Bitcoin ABC, this limit does not apply to connections asked for by -addnode, -connect or the addnode RPC, which have their own limit (8, or one per -addnode entry, at most 32), nor to hole-punched connections (-maxpunchconnections): the total peer count can reach <n> + those. The effective limit depends on system limitations and might be lower than the specified value
-maxnewpeerspernetgroup=<n>Make at most <n> automatic outbound connections into one network group to addresses that never completed a handshake with us (addresses that did, and -addnode / -connect peers, follow -maxpeerspernetgroup). 0 = no limit (default: 2)
-maxpeerspernetgroup=<n>Make at most <n> outbound connections into one network group (/16 for IPv4, /32 for IPv6, an AS with -asmap); applies to automatic outbound peers, the discovery sweep and punch connections. 0 = no limit, 1 = one per group as in Bitcoin ABC (default: 0)
-maxreceivebuffer=<n>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)
-maxsendbuffer=<n>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)
-maxtimeadjustmentMaximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: 4200 seconds)
-maxuploadtarget=<n>Tries to keep outbound traffic under the given target (in MiB per 24h). Limit does not apply to peers with 'download' permission. 0 = no limit (default: 0)
-networkactiveEnable all P2P network activity (default: 1). Can be changed by the setnetworkactive RPC command
-onion=<ip:port>Use separate SOCKS5 proxy to reach peers via Tor onion services (default: -proxy)
-onlynet=<net>Make outgoing connections only through network <net> (ipv4, ipv6 or onion). Incoming connections are not affected by this option. This option can be specified multiple times to allow multiple networks.
-overridednsseedIf set, only use the specified DNS seed when querying for peer addresses via DNS lookup.
-p2pwsproxyheader=<x-forwarded-for|x-real-ip>The header a -p2pwsproxy proxy sets with the client address (default: x-forwarded-for, of which only the last hop, the one the proxy appended, is read). x-real-ip: only when the proxy overwrites it (nginx: proxy_set_header X-Real-IP $remote_addr). The other header is never read
-p2pwsproxymaxpeers=<n>Most peers at a time through one -p2pwsproxy proxy address, browsers or not; above it the one silent for the longest is disconnected (default: 256, 1 to 65536)
-peerblockfiltersServe compact block filters to peers per BIP 157 (default: 0)
-peerbloomfiltersSupport filtering of blocks and transaction with bloom filters (default: 1)
-peertimeout=<n>Specify p2p connection timeout in seconds. This option determines the amount of time a peer may be inactive before the connection to it is dropped. (minimum: 1, default: 60)
-port=<port>Listen for connections on <port> (default: 10605, testnet: 11605, regtest: 12605, napoleontest: 20605)
-proxy=<ip:port>Connect through SOCKS5 proxy
-proxyrandomizeRandomize credentials for every proxy connection. This enables Tor stream isolation (default: 1)
-seednode=<ip>Connect to a node to retrieve peer addresses, and disconnect
-timeout=<n>Specify connection timeout in milliseconds (minimum: 1, default: 5000)
-torcontrol=<ip>:<port>Tor control port to use if onion listening enabled (default: 127.0.0.1:9051)
-torpassword=<pass>Tor control port password (default: empty)
-upnpUse UPnP to map the listening port (default: 0)
-whitebind=<[permissions@]addr>Bind to the given address and add permission flags to the peers connecting to it.Use [host]:port notation for IPv6. Allowed permissions: bloomfilter (allow requesting BIP37 filtered blocks and transactions), noban (do not ban for misbehavior; implies download), forcerelay (relay transactions that are already in the mempool; implies relay), relay (relay even in -blocksonly mode, and unlimited transaction announcements), mempool (allow requesting BIP35 mempool contents), download (allow getheaders during IBD, no disconnect after maxuploadtarget limit), bypass_proof_request_limits (experimental, bypass the limits on avalanche proof downloads), addr (responses to GETADDR avoid hitting the cache and contain random records with the most up-to-date info). Specify multiple permissions separated by commas (default: download,noban,mempool,relay). Can be specified multiple times.
-whitelist=<[permissions@]IP address or network>Add permission flags to the peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR-notated network (e.g. 1.2.3.0/24). Uses the same permissions as -whitebind. Can be specified multiple times. Inbound connections only, as in Bitcoin ABC: a peer this node dials gets no -whitelist permission. A peer named by -addnode or -connect is never discouraged or disconnected for misbehaviour anyway (what noban gives); the other permissions are not given to outbound peers.

Hole punching, discovery and mesh #

OptionMeaning
-discoverDiscover own IP addresses (default: 1 when listening and no -externalip or -proxy)
-introducermaxsessions=<n>Maximum number of hole-punch sessions this node will broker as an introducer within any 30 s window (a brokered session holds its slot for 30 s; one requester network group holds at most 8 of them) (default: 128)
-introducerrequestrate=<rate>Per-peer GETINTRO token-bucket refill rate in tokens/s (burst is fixed at 5; default: 0.20)
-maxpunchconnections=<n>Maximum number of hole-punched connections (introducer overlay) kept at once. They have their own budget, on top of -maxconnections, and never use the outbound slots; at most one per network group; when the budget is full, a punch peer connected for 10 minutes or more may be evicted to make room for a new introduction (at most one every 5 minutes); 0 disables punch dials (the node still brokers introductions). (default: 8, maximum: 64)
-meshcrawl=<n>Network mesh: at most <n> short crawl connections per hour to publicly reachable mesh nodes this node is not connected to, one at a time, within the outbound slots; 0 = only ask connected peers (default: 60, 0 with -connect; max 600)
-meshexpiry=<seconds>Network mesh: a node's links report not renewed within <seconds> expires: the node, its links and its parent-chain peers leave the network map unless a fresh report still lists them (default: 1800, min 300, max 86400)
-nointroducerDisable the hole-punch introducer overlay. Set this to opt out of advertising NODE_INTRODUCER even when the node is publicly reachable, and to refuse to ask other peers to broker punches on our behalf. The node still answers punches other nodes are introduced to it for (PUNCHREQ), within -maxpunchconnections. (default: 0, i.e. introducer overlay is on)
-peerdiscovery=<mode>How actively to look for peers: "aggressive" sweeps the whole address book while outbound slots are free (per-address retry backoff 30s doubling to 900s, at most 0.5 discovery dials per second), runs a feeler every 30 s, opens an addr-fetch connection to a known peer every 5 minutes, queries a DNS seed every 30 minutes, caches getaddr answers 30-60 minutes with at least 250 addresses and re-announces its own address about every hour; "normal" keeps the behaviour of Bitcoin ABC (default: aggressive)
-punchsameportDial hole-punch connections from the P2P listening port (SO_REUSEPORT on that listening socket and on the dial), so that a NAT that keeps the port maps the dial to the address the introducer gave the other side; without it a punch can only reach a node whose port is open anyway. Not available on Windows. (default: 1)
-sharetopology=<mode>What this node tells its NODE_MESH peers about its connections (getlinks/links, doc/network-mesh.md): all = every connection with its address, inbound included; public = only peers proven to listen on their address, the others as a count; off = nothing (no NODE_MESH bit, no mesh messages, no crawl) (default: all)

P2P encryption and identity #

OptionMeaning
-p2pencrypt=<0|1|required>Encrypt P2P connections with peers that support it: keys agreed per connection (X25519), AES-256-GCM traffic, this node's RSA identity proving who it is. 1: encrypted with every peer that supports it, plain with the others. required: plain peers are refused in both directions, which today includes every node before 12.5.6, browsers, Lotus Desktop, thin clients and the seeder. 0: off. (default: 1, doc/p2p-encryption.md)
-p2pencryptdowngradewait=<seconds>Refuse to speak plain with a peer that was encrypted before and stops offering encryption (someone interfering could force plain that way) until its handshake has failed for <seconds>, and for <seconds> after the last encrypted connection; then plain with a warning in the log and on the Network page. 0: plain with the warning at the first failure. Peers never seen encrypted are not affected. Pinned peers (-p2ppin) and -p2pencrypt=required always refuse. With a window, after a deliberate rollback of peers to an older release: p2pidentity forget all (default: 30)
-p2pidentitybits=<3072|4096>Size of the RSA identity key made at the first start (default: 4096)
-p2ppin=<address>=<fingerprint>Only accept the RSA identity <fingerprint> (64 hex digits, p2pidentity show on that node) from the peer dialed as <address> (as written in -addnode or -trustedblocksource, or ip:port), or from inbound connections of the IP <address>. A pinned peer is never spoken to in plain. Can be given several times.
-p2pzstdOffer zstd compression of P2P messages to peers and compress to those that offer it; peers without it keep the plain protocol (default: 1, doc/p2p-zstd.md)

Secure WebSocket, certificates and browser peers #

OptionMeaning
-p2pwsAccept P2P over WebSocket on the P2P listening ports, beside the plain protocol (an HTTP upgrade request is detected on the first bytes; default: 1, doc/p2p-websocket.md). Outbound: -connect/-addnode ws://host[:port][/path]
-p2pwsacme=<name>Automatic certificate for native wss:// on the P2P port: the node obtains and renews by itself a certificate for this DNS name (or public IP address) from an ACME certificate authority, Let's Encrypt by default. The name must point at this node, and port 80 must reach it while a certificate is requested. Needs -p2pwsacmeagree=1. Can be specified multiple times or as a comma separated list (one certificate for all the names) (doc/p2p-websocket.md)
-p2pwsacmeagreeAccept the terms of service of the certificate authority of -p2pwsacme (Let's Encrypt: https://letsencrypt.org/repository/) (default: 0)
-p2pwsacmebind=<addr>Address the validation listener of -p2pwsacme binds to (default: all IPv4 and IPv6 addresses). Can be specified multiple times
-p2pwsacmedirectory=<url>ACME directory of -p2pwsacme (default: https://acme-v02.api.letsencrypt.org/directory)
-p2pwsacmeemail=<address>Optional contact address given to the certificate authority of -p2pwsacme
-p2pwsacmeport=<port>Port of the HTTP listener that answers the certificate authority's validation, open only while a certificate is requested. The authority always connects to port 80: another value needs a redirection of port 80 to it (default: 80)
-p2pwsacmeprofile=<name>Certificate profile asked from the certificate authority of -p2pwsacme (default: its own default; 'shortlived' for IP addresses)
-p2pwsautostartLet the pages this node serves start the browser node for their visitors (doc/browser-node.md; default: 1). 0: GET /api/v1/network/wsnodes answers enabled=false and the loader stays off
-p2pwscafile=<file>CA certificates (PEM) that outbound wss:// peers must chain to, instead of the bundled Mozilla CA set (doc/p2p-websocket.md)
-p2pwsmaxbrowsers=<n>Most browser nodes (web pages running the browser library, doc/browser-node.md) connected at a time (default: 256). They are counted apart from the other inbound peers; above the limit the one silent for the longest is disconnected. 0: none
-p2pwsorigin=<origin>Only accept WebSocket peers whose Origin header (sent by browsers) is <origin>, e.g. https://wallet.example. Can be specified multiple times; "*" or none: any origin. Clients that send no Origin are always accepted
-p2pwspin=[<host>=]<sha256>Accept an outbound wss:// peer by the SHA-256 of its certificate or of its public key instead of a CA chain (self-signed certificates); with <host>, only for that host, otherwise for every wss:// host. A host with pins accepts nothing else. Can be specified multiple times
-p2pwsproxy=<ip|subnet>Reverse proxy (e.g. nginx terminating wss) whose client header (-p2pwsproxyheader) is believed for WebSocket peers: the client address is refused if banned, shown in getpeerinfo and used for the per-address limits. Can be specified multiple times
-p2pwspublic=<url>A ws:// or wss:// URL at which browsers reach this node's P2P port (e.g. wss://node.example.org/p2p behind a reverse proxy), published by GET /api/v1/network/wsnodes for the browser library (doc/browser-node.md). Can be specified multiple times. Not needed when the node has its own certificate (-p2pwsacme): the URL is then derived from its name
-p2pwsrtcmaxlinks=<n>Most direct links to other browsers a page served by this node keeps (default: 12, at most 32; told to the pages by GET /api/v1/network/wsnodes)
-p2pwsrtcrelayRelay the setup of direct links between the thin agents connected to this node: browser nodes (WebRTC, doc/browser-node.md) and Lotus Desktop apps (TCP punch introduced with punchcoord, doc/desktop-thin-agent.md) (default: 0). The node pairs only peers that both asked for links and forwards small opaque messages between them, nothing else
-p2pwsrtcstun=<url>A STUN server (stun:host:port) the pages served by this node use to find their public address for direct browser links. Can be specified multiple times. None: no links (no third-party server is ever used by default)
-p2pwsrtcstunport=<port>UDP port on which the node answers STUN Binding requests, so the pages it serves learn their public address without a third party (only with -p2pwsrtcrelay=1; default: 3478, 23478 on the test networks, the P2P port number on regtest; 0: none). The UDP port must be open to the internet
-p2pwstlscert=<file>Certificate chain (PEM) for native wss:// on the P2P listening ports: a connection starting with a TLS handshake is served over TLS (needs -p2pwstlskey)
-p2pwstlskey=<file>Private key (PEM) of -p2pwstlscert

Block relay hold #

OptionMeaning
-blockstorerefusalwait=<n>When the block store conversion refuses to start (not enough free disk space, for example), keep the startup web page answering for <n> seconds before the node exits, so that the page can show the reason. 0 exits at once (default: 30)
-adaptiveholdSet the hold of -untrustedblockdelay at run time from the fleet's hashrate share, agreed between the -trustedblocksource nodes by gossip over the P2P port (holdparam messages, never sent to other peers). Needed on every fleet node. -untrustedblockdelay is then only reported (default: 0)
-adaptiveholdblocks=<n>Blocks in the network hashrate window, at least 12 (default: 36)
-adaptiveholdconfidence=<pct>Two-sided confidence of the estimate's interval (default: 80)
-adaptiveholdcurve=<p:s,...>Hold in seconds as a function of the fleet hashrate share p (non-decreasing points, linear in between, two equal p make a step; raised on the lower end of the estimate, lowered on its upper end) (default: 0.50:0,0.53:5T with -holdreleasedepth, a small table without)
-adaptiveholdfallback=<s>Hold in seconds when no originator is heard, or the estimate is unsure (default: 0)
-adaptiveholdhysteresis=<s>Ignore a change smaller than max(this, 20% of the hold) (default: 15)
-adaptiveholdinterval=<s>Seconds between two estimates and holdparam messages, at least 1 (default: 10)
-adaptiveholdlocalhashrate=<H/s>Hashrate mining for this node outside its stratum server (getblocktemplate miners), added to the stratum estimate (default: 0)
-adaptiveholdlowerdwell=<s>No decrease within this many seconds of the previous change, unless p_hi < 0.5 (default: 0)
-adaptiveholdmax=<s>Largest adaptive hold in seconds, at most 3600 (default: 5 target spacings)
-adaptiveholdmaxciwidth=<x>Unsure (fallback) when p_hi - p_lo is wider (default: 0.5)
-adaptiveholdmaxstep=<s>Largest increase per estimate, 0 = none (default: 0)
-adaptiveholdmin=<s>Smallest adaptive hold in seconds while an originator is heard (default: 0)
-adaptiveholdoriginate=<n>Propose a delay from this node's own estimate: 1 always, 0 never, -1 when it has local hashrate (native stratum workers in the local tier, or -adaptiveholdlocalhashrate) (default: -1)
-adaptiveholdoriginator=<16 hex>Accept proposals from this originator id only (see getblockholdinfo); can be given several times (default: any fleet node)
-adaptiveholdpriorblocks=<n>Pseudo-blocks at the tip difficulty added to the window (default: 6)
-adaptiveholdraisedwell=<s>No increase within this many seconds of the previous change (default: 600)
-adaptiveholdsharewindow=<s>Seconds of native stratum shares counted, at most 600 (default: 600)
-adaptiveholdttl=<s>Seconds an originator's proposal stays valid after receipt, at least 3 intervals (default: 60)
-delayblockrelay=<selector>[:<seconds>]Send NEW blocks to the matching peers only once they are <seconds> old on this node (default: 600; 0 = no delay): announcements (headers, compact blocks, inv, the pushes of mined and pool blocks) are held back, and a request for such a block is answered notfound. Transactions and the relay to every other peer are not affected. <selector> is an IP address or network (203.0.113.7, 10.0.0.0/8, [2001:db8::/32]), a pattern on the peer's user agent (ua:/lotusd:12.0. ; searched anywhere, * and ? allowed), or both (10.0.0.0/8+ua:12.4.16). An IPv6 address followed by a delay needs brackets. A peer matching several gets the longest delay. Can be specified multiple times. The list can be changed on a running node with setblockrelaydelay; only what is given here (command line or configuration file) is there again after a restart. See doc/delay-block-relay.md
-holdparamsecret=<64 hex>Shared fleet secret: holdparam messages are signed with it and unsigned or badly signed ones dropped. Put it in lotus.conf (mode 600), not on the command line
-holdreleasedepth=<n>Release a held external branch at once when it is this many blocks above the fork with our chain, 0 = never (default: 2 with -adaptivehold, else 0)
-minedblockpushPush a block this node mined at once to every peer that has its parent (full block, or compact block if larger than -minedblockpushfullmax) (default: 1 with -adaptivehold except on regtest, else 0)
-minedblockpushfullmax=<bytes>Largest block pushed in full by -minedblockpush (default: 100000)
-parkheldbyreceipttimeDeep-reorg parking of blocks delayed by -untrustedblockdelay decides as if every block had been processed when it was received, so the delay does not make a chain that was public first look like a deep reorg (default: 1)
-resetholdparamidWith -adaptivehold: replace this node's originator id (kept in node.sqlite) by a new random one at startup. The remedy for two fleet nodes with the same id (a copied datadir), doc/adaptive-hold.md
-trustedblocksource=<IP address or network>Peers whose blocks are processed at once. When at least one is given, a block received from any other peer waits -untrustedblockdelay minutes before it is validated (not during initial block download; locally mined blocks are never delayed). Can be specified multiple times.
-trustedpeerrelayRelay transactions to and from the peers in -trustedblocksource (our fleet), inbound and outbound, without the delays meant for unknown peers: they are preferred download sources, get our transaction announcements at once instead of on the inbound trickle, and have the relay permission. They are still scored and disconnected for misbehavior (default: 1)
-untrustedblockdelay=<n>Minutes a block from a peer outside -trustedblocksource waits before it is validated; only with -trustedblocksource; 0 = no delay (default: 5)
-untrustedblockholduntilmtp=<t>The -untrustedblockdelay hold ends for a block whose parent has a median time past at or after <t> (unix time; the activation test of the forks): blocks from then on are processed at once, without a restart. 0 = the hold never ends (default: 0)

Mempool and relay policy #

OptionMeaning
-blocksonlyWhether to reject transactions from network peers. Automatic broadcast and rebroadcast of any transactions from inbound peers is disabled, unless the peer has the 'forcerelay' permission. RPC transactions are not affected. (default: 0)
-covenantmempoolexpiry=<n>Do not keep a transaction that spends a Taproot output by the script path (a contract) in the mempool longer than <n> hours, at most -mempoolexpiry (default: 48)
-maxmempool=<n>Keep the transaction memory pool below <n> megabytes (default: 600)
-maxorphantx=<n>Keep at most <n> unconnectable transactions in memory (default: 100)
-mempoolexpiry=<n>Do not keep transactions in the mempool longer than <n> hours (default: 336)
-mempoolsaveinterval=<n>With -persistmempool, also save the mempool every <n> minutes (one transaction; 0: only on shutdown) (default: 15)
-parallelmempoolVerify the scripts of incoming transactions (from peers and sendrawtransaction) on several threads before they enter the mempool one by one; acceptance decisions are unchanged (default: 1)
-parallelmempoolthreads=<n>Number of -parallelmempool threads besides the caller (0 to 15, 0 = as many as script verification threads, default: 0)
-persistmempoolWhether to save the mempool (in node.sqlite, every -mempoolsaveinterval minutes and on shutdown) and load it on restart (default: 1)
-permitbaremultisigRelay non-P2SH multisig (default: 1)
-bytespersigopEquivalent bytes per sigop in transactions for relay and mining (default: 50)
-databurnpolicyRefuse to relay or mine, before the rule is consensus, a transaction that the price of on-chain data would refuse (10000 satoshis destroyed per data byte above the free bytes). Once the rule is consensus it always applies. (default: 1; regtest: 0)
-datacarrierRelay and mine data carrier transactions (default: 1)
-datacarriersizeMaximum size of data in data carrier transactions we relay and mine (default and maximum: 8005). Policy only: blocks accept up to 8005 bytes whatever this value
-minrelaytxfee=<amt>Fees (in XPI/kB) smaller than this are rejected for relaying, mining and transaction creation (default: 0.001)
-whitelistforcerelayAdd 'forcerelay' permission to whitelisted inbound peers with default permissions. This will relay transactions even if the transactions were already in the mempool (default: 0)
-whitelistrelayAdd 'relay' permission to whitelisted inbound peers with default permissions. This will accept relayed transactions even when not relaying transactions (default: 1)

RPC, REST and web server #

OptionMeaning
-apisyncgateThe address and script routes of the REST API (/api/v1/addresses, /api/v1/scripts) answer 503 "syncing" with the node's height while it is in initial block download, more than 3 blocks behind its best header, or its indexes more than 3 blocks behind: a balance as of an old block is never given as current. 0 answers them as of the indexed height, as before 12.5.6 (default: 1).
-apireaders=<n>Maximum number of read-only SQLite connections the REST API opens on the explorer database (blocks/index.sqlite), so that its reads do not wait for block connection. Opened on demand, 4 MiB of page cache each. 0 reads through the connection shared with the writer, as before 12.0.4 (default: -rpcthreads, at most 8)
-donationaddress=<address>A Lotus address of this node's operator, for donations: the node web UI shows a pay button for it on the Network page and /api/v1/network names it (donation_address). A Lotus address of this node's network only (lotus_..., never CashAddr) (default: none)
-explorerport=<port>Serve a simple HTTP block explorer on <port>. Provides a basic web interface to view blocks and transactions. Uses the same port as RPC if not specified separately. Set to 0 to disable. (default: 0)
-httpcompressiongzip the replies of the REST API (/api/v1), the dashboard and the sitemaps when the client asks for it with Accept-Encoding. Clients that do not ask get the same bytes as before; JSON-RPC replies are never compressed (default: 1)
-operatorproxy=<ip|subnet>Operator mode (doc/webui-operator.md): a reverse proxy of this machine (for example nginx with proxy_bind 127.0.0.2). Its requests are never served the operator mode, with or without a forwarding header, whatever -operatortrustlocalproxy says; the client address it names (X-Real-IP, X-Forwarded-For) is believed from it only, for the log. Can be specified multiple times (default: none)
-rankcompatServe the routes of the original RANK API under /rank/api/v1/ on the REST port, from this node's RANK index (doc/protocols/rank.md) (default: 1)
-restAccept public REST requests (default: 0)
-restbatchbroadcastrate=<n>Maximum POST /api/v1/txs/broadcast-batch requests per minute, node-wide; 0 disables the route (default: 30)
-restbatchbroadcastshare=<percent>The part of -restbatchbroadcastrate and -restbatchbroadcasttxs one source address may use, 1 to 100 (the address a trusted proxy gives, as for -wstrustedproxy / -wsipheader; an IPv6 /64 is one source); 100: no share, the node-wide limits only (default: 50)
-restbatchbroadcasttxs=<n>Maximum transactions per minute through POST /api/v1/txs/broadcast-batch, node-wide; 0: no cap besides -restbatchbroadcastrate (default: 10000)
-rpcallowforwardedAnswer JSON-RPC requests (including the node's wallets at /wallet/<name>) and the REST operator routes when they carry a reverse-proxy header (X-Forwarded-For, X-Real-IP, Forwarded, CF-Connecting-IP, True-Client-IP, X-Forwarded-Host). Off by default: a node whose dashboard, explorer or browser wallet is published through a proxy never answers JSON-RPC through it, whatever path the proxy lets through. The public REST API is not concerned (default: 0)
-rpcallowip=<ip>Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times
-rpcauth=<userpw>Username and HMAC-SHA-256 hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcauth. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times
-rpcbind=<addr>[:port]Bind to given address to listen for JSON-RPC connections. Do not expose the RPC server to untrusted networks such as the public internet! This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times (default: 127.0.0.1 and ::1 i.e., localhost)
-rpccookiefile=<loc>Location of the auth cookie. Relative paths will be prefixed by a net-specific datadir location. (default: data dir)
-rpccorsdomain=valueDomain from which to accept cross origin requests (browser enforced)
-rpchostallow=<name>With -rpcnoauth, a host name or address (port ignored, IPv6 in brackets) that requests may name in their Host header, besides localhost, 127.0.0.0/8 and [::1]: the name or LAN address of the node, or the public name a reverse proxy passes on. Any other name or address is refused (403), so that a web page whose name was pointed at the node (DNS rebinding) is not answered. Can be specified multiple times
-rpcmaxconnsperip=<n>Maximum number of HTTP connections (JSON-RPC, REST API, dashboard) one address other than this machine (IPv6: one /64) may have open at once, queued or served; past it they get 503. A reverse proxy on another machine brings every client from its own address: raise it there. 0: no limit (default: half of the -rpcthreads not reserved for this machine, at least 2: 7)
-rpcnoauthDisable HTTP Basic authentication on the JSON-RPC interface entirely. Intended for deployments where access control is enforced by an upstream layer (reverse proxy, VPN gateway, network ACLs) and the node-level Authorization round-trip is dead weight. WARNING: a node with -rpcnoauth=1 reachable from an untrusted network is fully owned the moment a peer can hit its RPC port -- never enable this without also confining the listen address (-rpcbind / -rpcallowip / firewall) to a trusted boundary. Default: 0 (auth required).
-rpcpassword=<pw>Password for JSON-RPC connections
-rpcport=<port>Listen for JSON-RPC connections on <port> (default: 10604, testnet: 11604, regtest: 12604, napoleontest: 20604)
-rpcthreads=<n>Set the number of threads to service RPC calls (default: 16)
-rpcuser=<user>Username for JSON-RPC connections
-rpcwhitelist=<whitelist>Set a whitelist to filter incoming RPC calls for a specific user. The field <whitelist> comes in the format: <USERNAME>:<rpc 1>,<rpc 2>,...,<rpc n>. If multiple whitelists are set for a given user, they are set-intersected. See -rpcwhitelistdefault documentation for information on default whitelist behavior.
-rpcwhitelistdefaultSets default behavior for rpc whitelisting. Unless rpcwhitelistdefault is set to 0, if any -rpcwhitelist is set, the rpc server acts as if all rpc users are subject to empty-unless-otherwise-specified whitelists. If rpcwhitelistdefault is set to 1 and no -rpcwhitelist is set, rpc server acts as if all rpc users are subject to empty whitelists.
-scripttraceEnable POST /api/v1/script/trace, a policy-only step-by-step script evaluation (doc/contracts/tooling.md) (default: 0)
-scripttraceratelimit=<n>Maximum /api/v1/script/trace requests per minute, node-wide (default: 30)
-serverAccept command line and JSON-RPC commands
-siteurl=<url>Base URL (http(s)://host[:port][/path]) of the <loc> entries of /sitemap.xml and its shards and of the Sitemap: line of /robots.txt, and of the canonical and OpenGraph URLs of the web UI pages. Without it: the LOTUS_SITE_URL environment variable, else the address the request was sent to (Host header; X-Forwarded-Host and X-Forwarded-Proto only from a -wstrustedproxy peer) (default: none)

Operator mode #

OptionMeaning
-operatortrustlocalproxyOperator mode (doc/webui-operator.md): treat a request from a reverse proxy on this machine that sets no forwarding header (X-Forwarded-For, Forwarded, X-Real-IP) as local. Off: a loopback request that shows a sign of such a proxy (HTTP/1.0, Connection: close, Via, X-Forwarded-Proto and the like) is refused; a request with a forwarding header is refused whatever this option says. Set it only when every client of that proxy may use the operator mode (default: 0)
-operatoruiOperator mode of the node web UI (doc/webui-operator.md): sign in with the node's JSON-RPC credentials, run the operator commands and read the operator REST routes (node log, Stratum, pool) from the pages; served only to a browser on this machine or through an SSH tunnel, never through a reverse proxy (default: 1)

Chronik and the old explorer API #

OptionMeaning
-chronikServe the legacy Lotus Chronik API for old wallets: HTTP routes under /chronik/ on the REST port and the WebSocket /chronik/ws on the push listeners (doc/chronik-compat.md) (default: 1)
-chronikmaxinflight=<n>Chronik requests that read blocks or indexes at once; above it, 503 busy (default: 8)
-chroniknodeServe Bitcoin ABC's in-node Chronik API (npm chronik-client 1.x and later): HTTP routes under /chronik/v2/ on the REST port and the WebSocket /chronik/v2/ws on the push listeners (doc/chronik-compat.md); shares -chronikrate and -chronikmaxinflight with /chronik/ (default: 1)
-chronikrate=<n>Chronik requests per second per client (burst: three times as many); 0 for no limit (default: 20)
-explorercompatServe the old explorer API (/api/get, /api/verifymessage, /ext/) over the node's /api/v1 data (doc/chronik-compat.md) (default: 1)

App views over P2P #

OptionMeaning
-addrqueryAnswer the address query of light nodes over P2P (doc/address-query.md): offer sendaddrq and answer getaddrtxs with the transactions of a script and their merkle branches. Needs every block and the explorer index: off on a pruned node, in thin mode and with -explorerindex=0 (default: 1)
-addrqueryrate=<n>With -addrquery, scripts a second one peer may ask about (a script asked with its transactions counts as 3; burst: 30 seconds of it; default: 20)
-socqueryAnswer the RANK counts query of light nodes over P2P (doc/p2p-social-counts.md): offer sendsocq and answer getsoccounts with the confirmed counts of the RANK index, the newest vote txids and the votes in the mempool. Only with the RANK module (default: 1)
-socqueryrate=<n>With -socquery, targets a second one peer may ask about (burst: 30 seconds of it; default: 40)
-uiqueryAnswer the read-only app views over P2P (doc/p2p-ui-verbs.md): offer senduiq and answer getuiq with the public REST routes of the families this node runs (default: 1)
-uiqueryrate=<n>With -uiquery, view tokens a second per peer (a view costs 1 or 2; burst: 10 seconds of it; default: 10)

Push interfaces (WebSocket, ZMQ, NNG) #

OptionMeaning
-zmqpubhashblock=<address>Enable publish hash block in <address>
-zmqpubhashblockhwm=<n>Set publish hash block outbound message high water mark (default: 1000)
-zmqpubhashtx=<address>Enable publish hash transaction in <address>
-zmqpubhashtxhwm=<n>Set publish hash transaction outbound message high water mark (default: 1000)
-zmqpubrawblock=<address>Enable publish raw block in <address>
-zmqpubrawblockhwm=<n>Set publish raw block outbound message high water mark (default: 1000)
-zmqpubrawtx=<address>Enable publish raw transaction in <address>
-zmqpubrawtxhwm=<n>Set publish raw transaction outbound message high water mark (default: 1000)
-zmqpubsequence=<address>Enable publish hash block and tx sequence in <address>
-zmqpubsequencehwm=<n>Set publish hash sequence message high water mark (default: 1000)
-chroniknodewspath=<path>Request path of the in-node Chronik WebSocket (chronik-client 1.x and later; doc/chronik-compat.md), served by the push listeners; empty to turn it off (default: /chronik/v2/ws; off with -chroniknode=0)
-chronikwspath=<path>Request path of the legacy Chronik WebSocket (doc/chronik-compat.md), served by the push listeners; empty to turn it off (default: /chronik/ws; off with -chronik=0)
-wsconnrate=<n>Push WebSocket handshakes per minute per client IP (default: 30)
-wsipheader=<name>Header carrying the client IP from a trusted proxy (default: -stratumwsipheader, else X-Real-IP)
-wslisten=<bind>:<port>Open a WebSocket listener for push notifications only (the browser miner port serves them too). Bind to 127.0.0.1 or to the interface the reverse proxy reaches. Can be specified several times (default: none)
-wsmaxconnections=<n>Maximum push WebSocket connections (default: 1000)
-wsmaxconnperip=<n>Maximum push WebSocket connections per client IP (IPv6: per /64) (default: 16)
-wsmaxsubs=<n>Maximum subscriptions per push connection (and per NNG push session) (default: 1000)
-wsmaxsubsperip=<n>Maximum push subscriptions per client IP (default: 20000)
-wsmaxsubstotal=<n>Maximum push subscriptions in total (default: 1000000)
-wsorigin=<origin>Allow push handshakes from this Origin (scheme://host[:port]) or '*' for any. Can be specified several times (default: the -stratumwsorigin values; without them, the Origin host must equal the Host header's host)
-wspath=<path>Request path of the push notification endpoint (default: /api/v1/ws)
-wspushServe push notifications over WebSocket (doc/push-notifications.md) on the browser miner port (-stratumwslisten) and on -wslisten (default: 1)
-wsqueue=<n>Events queued per push connection before its backlog is dropped with a resync notice (default: 2000)
-wstrustedproxy=<subnet>Believe the client IP header (-wsipheader) only from TCP peers in this subnet. Can be specified several times (default: the -stratumwstrustedproxy values, else 127.0.0.0/8 and ::1/128)
-maxapibodysize=<bytes>Maximum request body size in bytes accepted by the NNG RestCall tunnel. POSTs above this limit are rejected with NNG error BODY_TOO_LARGE. 0 disables the check. (default: 1048576)
-nngpub=<url>Bind to given url to listen for NNG PubSub connections. URL has to be prefixed by tcp:// or ipc://, which also determines the transport that will be used
-nngpublic=<url>Public NNG req/rep listener for external pool operators (tls+tcp://host:port or tcp://host:port). Serves only GetMiningTemplateRequest (shared template cache) and RestCall POST rpc/submitblock; every other call is refused. Without a port: 10610 (napoleontest: 20610). Independent of -nngrpc (default: off)
-nngpublicbanscore=<n>Public NNG: violation points that ban an address (default: 100)
-nngpublicbantime=<seconds>Public NNG: ban length (default: 600)
-nngpublicbytesrate=<bytes>Public NNG: response bytes per second per address, burst 4x (default: 4194304)
-nngpubliccert=<file>PEM certificate chain of the public NNG listener (required for tls+tcp://; TLS 1.2 minimum, no client certificate)
-nngpublickey=<file>PEM private key of -nngpubliccert
-nngpublicmaxconn=<n>Public NNG: max req/rep connections (default: 64)
-nngpublicmaxconnperip=<n>Public NNG: max req/rep connections per IPv4 address or IPv6 /64 (default: 4)
-nngpublicmaxmsg=<bytes>Public NNG: largest request accepted (default: 8388608)
-nngpublicmaxpooladdrs=<n>Public NNG pool bridge: distinct payout addresses per address of a coordinator per 10 minutes (default: 256). Per-source share and pool template rates are -poolnngsharerate and -poolnngtemplaterate
-nngpublicmaxpubconn=<n>Public NNG: max pub connections (default: 64)
-nngpublicmaxpubconnperip=<n>Public NNG: max pub connections per address (default: 2)
-nngpublicmaxscripts=<n>Public NNG: distinct payout scripts per address per 10 minutes (default: 8)
-nngpublicpub=<url>Public NNG pub listener: miningwrkchg, blkconnected, blkdisconctd only. Without a port: 10611 (napoleontest: 20611) (default: off)
-nngpublicpubqueue=<n>Public NNG: messages queued per subscriber before it misses messages (default: 16)
-nngpublicpushPublic NNG: serve push notification sessions (PushPollRequest, public chain data, per-IP limits) and the pushblock topic on -nngpublicpub (doc/push-notifications.md) (default: 0)
-nngpublicrate=<n>Public NNG: requests per second per address, burst 2x (default: 20)
-nngpublicsharebudget=<n>Public NNG pool bridge: share reports per second from all coordinators together, burst 2x (default: 2000)
-nngpublicsubmitrate=<n>Public NNG: block submissions per second per address, burst 4 (default: 1)
-nngpublictemplaterate=<n>Public NNG: template requests per second per address, burst 2x (default: 5)
-nngpublicworkers=<n>Public NNG: request worker contexts (default: 4)
-nngpubmsg=<messagetype>Enable publishing <messagetype> on the NNG PubSub interface. Can be specified multiple times to enable multiple message types. Available message types are: updateblktip, mempooltxadd, mempooltxrem, blkconnected, blkdisconctd, chainstflush, miningwrkchg, pushevent, pushblock
-nngrpc=<url>Bind to given url to listen for NNG RPC connections. URL has to be prefixed by tcp:// or ipc://, which also determines the transport that will be used

Modules and indexes #

OptionMeaning
-analyticsprefetch=<n>Read-only connections used to read ahead, in parallel, the explorer database pages a block with many inputs is about to touch (0 to disable; default: 8). Speeds up input-heavy blocks when the explorer database is larger than RAM; never changes what is written.
-asyncindexWrite the explorer analytics and the chain modules (SLP, ALP, RANK, eMPP, BLOB, POKR, CONTRACT) on a background thread, in chain order, after each block is connected, instead of inside block connection (default: 1). The POOL and mining modules always stay on the validation thread. The indexes may then be a few blocks behind the tip: GET /api/v1/chain reports indexer.index_height. 0 restores the synchronous indexing of 12.4.15 and earlier; the index contents are the same either way.
-asyncindexmaxlag=<n>With -asyncindex: at most <n> blocks wait for the indexes; block connection waits for room beyond that (default: 64, 1 to 1024).
-asyncindexmaxmem=<n>With -asyncindex: at most <n> MiB of blocks wait for the indexes (default: 256, 16 to 4096).
-asyncindexreadwait=<ms>With -asyncindex, at the tip: a REST request that reads an index waits up to <ms> for the blocks queued before it, so a block just connected is visible; not at all when the queue would take longer (a catch-up: the answer is then as of indexer.index_height). Default: 250; 0 to never wait.
-blockfilterindex=<type>Maintain an index of compact filters by block (default: 0, values: basic). If <type> is not supplied or if <type> = 1, indexes for all known types are enabled.
-chaineventsRecord reorgs, orphaned blocks, side branch tips, held blocks, parking and invalid blocks in node.sqlite, for /api/v1/chain/events and the dashboard (default: 1)
-chaineventsgap=<minutes>Chain events no more than this many minutes apart belong to one episode (default: 30)
-chaineventsretention=<days>Keep recorded chain events this many days, 0 = for ever (default: 90)
-contractindexIndex Taproot contract outputs and their state transitions (module CONTRACT, /api/v1/contracts, dashboard tab). The first start on an existing chain replays it from genesis (default: 0)
-deferanalyticsindexesDuring the first sync only (explorer database empty at start), do not maintain the read-only explorer indexes (rich list, address UTXOs, sitemaps...) block by block; build them in bulk in the background once the node is at the tip. The views that need them answer 503 explorer_indexing meanwhile; the rest of the explorer stays live. Set to 0 on a node whose indexes are deferred to build them at startup instead. (default: 1, regtest: 0)
-dropredundantexplorerindexesMaintenance, one start: drop the two address history indexes that older versions built and that nothing reads (idx_addr_hist, idx_addr_hist_txid; about a quarter of blocks/index.sqlite on mainnet). Runs at startup, before any block is connected; each drop reads the whole index and can take minutes. The freed pages are reused by the database, so the file stops growing, but it only gets smaller with an offline VACUUM or a resync. A database that never had them is left as it is. Remove the option afterwards. (default: 0)
-entityhidefile=<path>Local display preference of this node (RANK module, rank 3), like local address labels: a text file of ids this node's REST does not show, one per line: an entity eid, or <platform>:<profile id> (e.g. localbusiness:sirene-...), optionally followed by a free label for the operator (never served). Such an entity is answered as {eid, hidden: true, hiddenBy: local-preference} and is left out of this node's lists. '#' starts a comment. Read at startup. Not shared with other nodes, not part of any protocol, changes nothing indexed. (default: none)
-explorerindexMaintain the explorer tables of blocks/index.sqlite (transactions, inputs, outputs, address balances and history: ~90% of a synced datadir). With -explorerindex=0 the node validates and serves the chain as before but the explorer routes that need those tables answer 503 explorer_disabled. Enabling it again on a datadir that ran without it needs -reindex (default: 1)
-explorersynccache=<n>Page cache of the explorer database during the first sync (while its indexes are deferred, until the after-sync steps start), in MiB. 0 keeps the normal 64 MiB (default: RAM/16, between 64 and 1024)
-explorersyncwal=<n>WAL size, in MiB, after which the explorer database is checkpointed during the first sync (same period as -explorersynccache). 0 keeps the normal 4 MiB (default: 64)
-gamesIndex on-chain games (module GAMES, /api/v1/games, doc/api-v1.md): the "GAME" records of eMPP outputs and the bubbles of BetBet, with the unconfirmed ones. Runs with the eMPP index (default: 1)
-launchindexIndex token launch pools (module LAUNCH, /api/v1/launch, doc/contracts/launchpad-api.md). The first start on an existing chain replays it from genesis (default: 0)
-mempooloverlayKeep an in-memory index of the mempool per address, outpoint and token, so the REST address, UTXO and transaction answers include unconfirmed transactions (doc/mempool-overlay.md) (default: 1)
-mempooloverlaymaxmb=<n>Memory bound of the mempool overlay in MB. Past it, new mempool transactions are not indexed and the answers say "unconfirmed_complete": false (default: 256)
-modulemaxrollback=<n>After an unclean stop a chain module (SLP, ALP, RANK, ...) can be ahead of the chain state, or on a fork. It is rolled back to the last block it has in common with the active chain when that block is at most <n> blocks below the module tip; otherwise it is rebuilt from genesis. (0 to 10000, default: 10000)
-modules=<list>Chain modules that run on this node, comma-separated (empp, pool, rank, pokr, blob, slp, alp, contract, book, voix, games), or "all" or "none". contract also needs -contractindex=1, which adds it to a list. A module left out keeps no database and its /api/v1 routes answer 503 module_disabled. eMPP is added when blob, pokr, rank, slp, book, voix or games is listed (they read its rows); games is added when empp runs unless -games=0. A module enabled again later catches up from its last block (from genesis if it never ran), which needs the block files (default: all)
-pokrmaxburn=<sats>Maximum sats burnt to the OP_RETURN output of a POKR event for it to be indexed by the POKR module; 0 disables the ceiling. (default: 0)
-pokrminburn=<sats>Minimum sats burnt to the OP_RETURN output of a POKR event for it to be indexed by the POKR module (native and eMPP events). (default: 1)
-rank3listminorsRank 3 display policy: persons whose Wikidata record makes them minors are listed like adults, with no notice (display.minor is still reported). 0 applies rule P5 (not listed, page behind a notice, no birth date and no sitelink treated as a minor). Changes nothing indexed. (default: 1)
-rank3livingagainstlistsRank 3 display policy: living persons may appear in RANK lists ordered by "against" (bottom, falling, controversy, order=against). 0 applies rule P4 (they are left out). Reported as policy in every entity answer; changes nothing indexed. (default: 1)
-rank3photosRank 3 display policy: photos of persons may be shown: the node serves the Commons thumbnails of its Wikidata snapshots (GET /api/v1/rank3/wikidata/<qid>/image, local files only) and the image fields. 0 asks clients and the node not to show them. Reported as policy in every entity answer. (default: 1)
-rank3wdfetchReserved: fetch Wikidata items missing from every snapshot from wikidata.org for display (level fetched, never listable). Not implemented in this release; setting it only logs a line (default: 0)
-rank3wdlangs=<list>Language shards of the Wikidata snapshots to load: comma-separated Wikidata language codes, or "all" (default: all, every shard present on disk)
-rank3wdminsigs=<n>Valid attestations by distinct -rank3wdsigner identities that make a Wikidata snapshot attested (default: 2)
-rank3wdsigner=<fingerprint>Node identity (fingerprint of 64 hex digits, p2pidentity show) whose integrity attestations of a Wikidata snapshot count for the level attested. Repeatable; replaces the default list (mainnet: the 10 fleet node identities; elsewhere none). -norank3wdsigner: none
-rank3wdtrust=<hash>Treat the Wikidata snapshot with this manifest hash (64 hex digits) as integrity-checked by the operator (level local), for example after wdsnap.py verify --all. Repeatable
-rankdiscoveryminburn=<sats>Sats that a RANK vote must burn for the zero-burn discovery entries of its transaction (neutral RANK outputs naming other posts, at most 25 per transaction) to be indexed by the RANK module. Never below -rankminburn. Discovery entries carry no weight and change no score; no consensus effect. (default: 1000000)
-rankminburn=<sats>Minimum sats burnt to an OP_RETURN RANK vote for it to be indexed by the RANK module. Below this threshold the vote is decoded but skipped — useful as an anti-spam noise floor without changing consensus. (default: 1)
-rebuildaddressbalancesMaintenance: if the explorer's per-address balances have drifted from the indexed outputs, rebuild them from the source tables after startup. The node connects no block and answers no request while the rebuild runs (tens of minutes or more on mainnet). Without this option a drift is only logged.
-txindexMaintain a full transaction index, used by the getrawtransaction rpc call (default: 0)
-wxpidata=<file>Serve the WXPI redemption data written by contrib/wxpi/wxpi.py publish at GET /api/v1/wxpi/status and /api/v1/wxpi/wallet/<solana address> (doc/wxpi-redemption.md), read only, read again when the file changes. Relative to the data directory. Off when unset; the routes answer 404 not_open until the file is marked published. (default: unset)

VOIX #

OptionMeaning
-voixSpeak the VOIX voice* P2P commands: onion packets, onion key descriptors, mailboxes (default: 1, doc/voix/onion.md)
-voixmailboxKeep VOIX mailboxes for others in <datadir>/voix/mailbox.sqlite (the node's own mailbox is always kept) (default: 1)
-voixmailboxsize=<MB>Total size of the VOIX mailboxes (default: 64)
-voixmailboxttl=<hours>Longest time a VOIX mailbox item is kept (default: 168)
-voixrelayRelay VOIX onion packets and publish an onion key descriptor (default: 1)
-voixrelaymaxmb=<MB>Most VOIX onion packets forwarded for others, in MB a day; above it packets to forward are dropped (0: no cap; default: 1000)

Finality #

OptionMeaning
-aggqserverWith -proofserver, also answer getaggq quorum queries (runs the REST handler of the route; default: 1)
-finalityRelay and serve notary receipts and double-spend proofs (doc/finality/receipts.md): offer sendfinality, REST routes under /api/v1/finality and WebSocket events (default: 1)
-finalityexpiry=<s>With -finalitykey, validity of the receipts signed (1 to 86400, default: 600)
-finalitykey=<file>Fleet notaries only: sign receipts with the secret key in <file> (64 hex characters or WIF). The file must belong to the user running the node and must not be readable by group or others
-finalitywindow=<ms>With -finalitykey, how long to wait with no conflict after first seeing a transaction before signing (50 to 10000, default: 500)

Child chains #

OptionMeaning
-childchainannounceAnnounce and serve this chain's blocks and headers above the fork block to peers that check a child chain (default: 0; transactions are relayed either way)
-childchainfollowCheck the child chains of this network from what peers serve (headers and blocks; read-only) and show them (default: 1)
-childchainanchordepth=<n>Notarize the child chain block this many blocks below the tip this node checked (0 to 1000, default: 6)
-childchainanchorsNotarize Child chain blocks: the blocks this node builds carry the hash and height of a child chain block it checked (one 55-byte coinbase output; not consensus; needs -childchainfollow) (default: 1)
-childchainrecordRecord child chain headers and transaction lists in the blocks this node builds, once the chain accepts them (default: 1)

Parent chains and merged mining #

OptionMeaning
-auxlinkwait=<seconds>MMv3: how long submitauxblock / getauxblock wait for a parent header a proof builds on and that no Lotus block recorded yet (it is then attached to the block, field 6) (default: 5)
-auxpowaddress=<address>Lotus address paid by the templates of getauxblock called without arguments (the Dogecoin/Namecoin pool convention); createauxblock takes its address as an argument
-auxpowalgo=<scrypt|sha256d>Parent algorithm of createauxblock / getauxblock templates when the caller names none: scrypt for a Litecoin merged-mining pool, sha256d for a Bitcoin one (default: scrypt)
-dogecoinEnable Dogecoin thin node for merged mining (default: 0)
-dogecoinbaseaddr=<addr>Dogecoin address for DOGE block rewards
-dogemaxpeers=<n>Maximum outbound peers for DOGE thin node (default: 8)
-litecoinEnable Litecoin thin node for merged mining (default: 0)
-ltccoinbaseaddr=<addr>Litecoin address for LTC block rewards
-ltcmaxpeers=<n>Maximum outbound peers for LTC thin node (default: 8)
-mmv3localparent=<btc|xec|bch|ltc>[,...]Every network (mainnet from Napoleon, when MMv3 is active): the sha256d-auxpow and scrypt-auxpow listeners without another parent work source, and the sessions without a pool list of a -miningpoolperminer listener, build their parent headers on the best recorded header of these parent chains (fed by -parentp2p), in turn (SHA-256d: btc, xec, bch; Scrypt: ltc), so CPU, GPU or ASIC miners find Lotus blocks that are valid under MMv3 anchoring without a parent pool. A mining work source only: it changes no validity rule.
-parentheaderrelayRelay pending parent headers with Lotus peers (phdrs), so a node with no parent source learns them (default: 1)
-parentheadersinblocksPut pending parent headers in the blocks this node builds (MMv3 metadata field 5, once MMv3 is active) (default: 1)
-parentp2p=<chains>MMv3 parent-chain feeder: follow these parent chains over their own P2P networks, headers only (btc, xec, bch, ltc, all; comma separated; may be repeated). The headers go in the blocks this node builds. Not consensus. (default: none)
-parentp2pconnect=<chain>:<host:port>Connect to this parent peer only (no DNS seeds, no address gossip for that chain); may be repeated. Implies -parentp2p=<chain>.
-parentp2pmaxrecv=<kB/s>Parent P2P headers download budget per chain, in kB per second; bounds the bandwidth and the proof-of-work CPU (Scrypt for Litecoin) of a catch-up (default: 200)
-parentp2ppeers=<n>Outbound parent P2P peers per chain, at most one per /16 network (1 to 16, default: 4)
-parentrpc=<chain>:<url>Follow this parent chain from your own parent node's JSON-RPC ([http://][user:password@]host:port; getbestblockhash every second, getblockheader). Every header is still checked by its own proof of work. One per chain. The credentials are never logged or shown.
-scryptmempoolsize=<n>Shared mempool limit in MB per Scrypt chain (default: 50)
-scrypttxmaxstage=<n>Seconds before unconfirmed Scrypt mempool txs are evicted (default: 600)
-scrypttxminpeers=<n>Minimum peers confirming a tx before inclusion in Scrypt chain templates (default: 5)

Upgrade notice #

OptionMeaning
-upgradedateshownUser interfaces served by this node (web UI, web wallet, and the apps reading GET /api/v1/upgrades or /api/v1/chain, field date_shown) may print the date of the next network upgrade: countdowns, deadlines, "available from" dates. When off they say "with the Napoleon upgrade" instead. The activation time stays in the API either way. Can be changed at run time with the RPC setupgradedateshown (default: 0)
-upgradenotice=<version>[,<mtp>]Announce to peers (upgnotice message) that node version <version> is released, optionally required before the median time past <mtp> (unix seconds). Not older than this node. A node shows a newer version once at least 3 and 51% of its outbound peer groups announce exactly that version, with the page https://lotusia.network/upgrades/<version>/ (default: this node's own version, no deadline)

Snapshots and UTXO hash #

OptionMeaning
-loadutxosnapshot=<file>Load this UTXO snapshot (release-pinned base) as soon as the header of its base block is known: a new full node starts from it, checks the history in the background (-snapshotverify) and builds the modules after (doc/utxo-snapshot.md)
-rank3wdsnapshot=<manifest>Load a Wikidata snapshot (wdsnap v1, doc/rank3/wdsnap.md): the path of its wdsnap-<id>.manifest.json, the core and language files beside it. Repeatable. Default: every <datadir>/rank3/wdsnap-*.manifest.json; -norank3wdsnapshot loads none. A file that does not match its manifest is refused. Display only: scores and the RANK index never depend on it
-snapshotbootstrapFull node on a fresh datadir: start from the newest UTXO snapshot of the peers (streamed into chainstate.sqlite, vouched for by this release, or by a quorum of -thinpeers independent sources), be usable within minutes, then validate the whole history in the background up to the snapshot and confirm it. Needs -explorerindex=0 -modules=none until the history is validated (doc/thin-unification-12417.md) (default: 0)
-snapshotp2pFetch the UTXO snapshot from NODE_PROOFS peers when no -snapshotsource and no -loadutxosnapshot is given (default: 1)
-snapshotsource=<host:port>REST API of a full node (12.4.13 or later) to fetch the UTXO snapshot from, for the thin mode and -snapshotbootstrap; may be given several times. Without it the snapshot comes from the NODE_PROOFS peers over P2P (12.4.17 or later)
-snapshotverifyOn a node started from a UTXO snapshot (loadtxoutset), download and validate the history up to the snapshot in the background and stop the node if it disagrees with the snapshot. 0 never downloads the history and trusts the release's snapshot hash for good (doc/utxo-snapshot.md) (default: 1)
-snapshotverifycache=<MiB>Coins cache of the UTXO snapshot background validation (default: 256)
-utxohashKeep the UTXO set hash of every block (MuHash3072, updated per block; one row per block in chainstate.sqlite) for getutxohash, /api/v1/chain/utxo-hash and the snapshot quorum (default: 1 when -utxosnapshotinterval is set, else 0)
-utxohashkeep=<n>Keep the per-block UTXO hashes of the last n blocks (every 1000th is always kept; 0 = all) (default: 20000)
-utxosnapshotdir=<dir>Directory of the periodic UTXO snapshots (default: <datadir>/utxosnapshots)
-utxosnapshotinterval=<n>Periodic UTXO snapshots at the heights multiple of 100, each written 110 blocks later once its coinbase commitment is buried (a network convention on main/test: only 0, off, changes it; regtest accepts 1-100) (default: 100, 0 on regtest)
-utxosnapshotkeep=<k>Keep the last k periodic UTXO snapshots, plus the one being written (1-4, default: 1)
-utxosnapshotminfree=<MiB>Skip a periodic UTXO snapshot when less than this would stay free (default: 8192)
-utxosnapshotserveServe the periodic UTXO snapshots on /api/v1/utxo-snapshots (default: 1 when -utxosnapshotinterval > 0)
-utxosnapshotservekbps=<n>Byte-rate budget of the served snapshot ranges, all clients together, in KB/s (default: 8192)
-thinsnapshottrust=<peers|fleet>Who may vouch for the UTXO snapshot of a thin node (or of -snapshotbootstrap) while no buried coinbase commitment and no release entry covers it (mainnet before Napoleon): peers = -thinpeers sources in distinct network groups; fleet = only sources at a -trustedblocksource address, one vote per address, and only those serve it over P2P (default: fleet for a thin pool member, which needs -trustedblocksource; peers otherwise). A thin pool member on mainnet is always fleet
-utxocommitmineWrite the UTXO set commitment (doc/research/utxo-commitment.md) in the coinbase of the blocks this node builds, from Napoleon on. Only has an effect where the commitment is optional (regtest): on mainnet and testnet it is mandatory from Napoleon and always written (default: 1)

Thin mode and proofs #

OptionMeaning
-proofpeers=<n>With -proofserver, most peers served per 10 minutes (default: 32)
-proofserverServe the thin-node proof protocol (doc/thin-mode.md): advertise service bit NODE_PROOFS (31) and answer getcoins, getspend, getblkspent and getaggq with merkle proofs and canonical quorum answers. Ignored on a pruned node. Spend proofs and quorum answers need the explorer index (default: 0)
-thin=<mode>Thin mode (doc/thin-unification-12417.md): 0 full node; 1 (or thin, auto) thin node: headers, peers, the wallet, the pool ledger, usable at once through proofs from NODE_PROOFS full nodes while it fetches the newest UTXO snapshot of its peers into SQLite, then runs on the whole UTXO set and checks spends locally; utxo (or snapshot): the same, but block download waits for the snapshot instead of proving coins; proofs: proofs only, never a UTXO set (the meaning of -thin=1 before 12.4.17). The snapshot is vouched for by a buried coinbase commitment, this release, or a quorum of -thinpeers sources. Forces -explorerindex=0 -modules=none -proofserver=0 -peerbloomfilters=0 -peerblockfilters=0 and a pruned block store; never advertises NODE_NETWORK, BLOOM, COMPACT_FILTERS or PROOFS, and never relays a block before validating it (default: 0)
-thinactivateThin mode: on a fresh datadir, once the headers are synced, adopt the block -thinkeep below the best header as the chain base without downloading its history (trust for history: proof of work); the coins it needs are proven by NODE_PROOFS peers. 0 validates from genesis (default: 1)
-thincache=<MiB>Thin mode: byte budget of the cache of proven coins, input bundles and quorum answers, in RAM and in its SQLite table chainstate/thin_proofs.sqlite (default: 256 with -thin=1, 32 with -thin=utxo, which proves no coins)
-thincommitdepth=<n>-thin=utxo: headers needed above the block whose coinbase commits to the snapshot base before that commitment vouches for the snapshot (default: 100)
-thinconvertfullThin mode: confirm the conversion of a full node's datadir. Its blk/rev files (the whole block history) are deleted; only the last -thinkeep blocks are kept, in SQLite. Without it, -thin on such a datadir refuses to start and changes nothing (default: 0)
-thinfilterpeers=<k>Thin mode: BIP157 filter peers (NODE_COMPACT_FILTERS) that must all agree on the filter headers of a wallet rescan (default: 3)
-thinkeep=<n>Thin mode: recent blocks kept for relay and reorgs; 288 or more also advertises NODE_NETWORK_LIMITED (default: 12)
-thinpeers=<k>Thin mode: independent proof peers asked for a cross-check (default: 3)
-thinquorummax=<n>Thin mode: most peers asked when a quorum answer disagrees (default: 6)
-thinquorumpolicy=<strict|majority|any>Thin mode: answer only unanimous quorums, also majorities, or also disputed answers (default: majority)

Block creation #

OptionMeaning
-blockmaxsize=<n>Set maximum block size in bytes (default: 2000000)
-blockmintxfee=<amt>Set lowest fee rate (in XPI/kB) for transactions to be included in block creation. (default: 0.001)
-blockselector=<feerate|ancestor>How block templates pick mempool transactions (policy only). feerate: each transaction on its own fee rate, a child only after its parents, O(N log N), no CPFP (opt-in in 12.4.16). ancestor: the CPFP package selector (default: ancestor)
-coinbasetag=<tag>Tag written in the coinbase of the blocks this node builds for mining (generate*, getrawunsolvedblock, getblocktemplate proposals, native and aux stratum): OP_RETURN <tag> <height>. ASCII letters, digits and '_', 1 to 32 characters (e.g. FRENCH_BTC). Before Napoleon it is used only if it is exactly 5 letters and digits; after Napoleon only with -coinbasetagafternapoleon=1. Otherwise "logos" is written. Consensus is not affected (default: logos)
-coinbasetagafternapoleonKeep writing -coinbasetag after Napoleon. WARNING: Child chain 1 nodes reject every block whose coinbase tag is not "logos" after Napoleon (bad-cb-height): blocks found with this on may be orphaned or split the chain (default: 0)
-coinbasetagbeforenapoleon=<tag>Tag written instead of -coinbasetag in the blocks this node builds before Napoleon: exactly 5 ASCII letters and digits (e.g. FRBTC), the only form the coinbase rule takes before Napoleon. From Napoleon on -coinbasetag and -coinbasetagafternapoleon decide, as without this option. Consensus is not affected (default: not set)
-gbtlightjobs=<n>getblocktemplatelight jobs (templates) kept for submitblocklight, most recent first (default: 64)

Stratum and mining server #

OptionMeaning
-mergemine=<spec>Add an external chain for merged mining. Format: name:host:port:user:pass:chainid[:poll_ms]. Can be specified multiple times.
-miningdbPersist every mining datum (stratum and browser-miner sessions, shares, vardiff, rejects, found blocks, NNG templates) in <datadir>/modules/mining.sqlite (default: 1)
-miningmaxsessions=<n>Maximum number of open miner sessions on the SHA-256 and Scrypt listeners together; each opens its own upstream pool connection or channel (minimum 1, default: 256).
-miningmaxsessionsperip=<n>Maximum number of open miner sessions from one IP address on the SHA-256 and Scrypt listeners (minimum 1, default: 128). Raise it for a farm behind one NAT address.
-miningparent=<spec>Parent node of an ASIC algorithm, over RPC, for real merged mining. Format: <algo>:rpc://user:password@host:port, <algo> = sha256d or scrypt. The node builds the parent coinbase (with the merged-mining tag), submits the parent block when a share meets the parent target, and falls back to a synthetic parent while the parent node does not answer. Needs -miningparentscript.
-miningparentscript=<spec>Payout script on the parent chain of -miningparent. Format: <algo>:<hex scriptPubKey>.
-miningpool=<spec>Upstream pool of an ASIC algorithm, over Stratum V1: the node is a proxy in front of the pool. Format: <algo>:stratum+tcp://host:port:<account>[:<password>], <algo> = sha256d or scrypt, one pool per algo. Every share that meets the pool's difficulty is forwarded; a share that also meets the Lotus target / M becomes a Lotus block, anchored in the extranonce2 bytes the pool leaves (at least 8 are needed). Takes precedence over -miningparent for that algo.
-miningpoolallowprivateWith -miningpoolperminer: allow miner-named pools on loopback or private addresses (default: 0)
-miningpoolfailbackhold=<seconds>Per-miner upstreams: how long a recovered, preferred pool must stay healthy before its miners move back to it (default: 120)
-miningpoolmaxupstreams=<n>Per-miner upstreams and proxy pools of a parent chain: most miner upstream connections of the node at once, one per ASIC session, 1 to 65536 (default: 4096, 512 on mainnet)
-miningpoolmaxupstreamsperhost=<n>Per-miner upstreams and proxy pools of a parent chain: most upstream connections from this node to one pool address; a miner over it goes to the next pool of its list (default: 1024, 256 on mainnet)
-miningpoolmaxupstreamsperip=<n>Per-miner upstreams and proxy pools of a parent chain: most upstream connections for miners of one IP address (default: 128, 128 on mainnet)
-miningpoolminerbytes=<n>Fewest extranonce2 bytes left to each ASIC behind a -miningpool, 2 to 8 (default: 2)
-miningpoolntimeroll=<seconds>How far above a pool job's ntime a miner's ntime is accepted, 0 to 7000 (default: 600)
-miningpoolpassthroughProxy-pool mode: each ASIC authorizes upstream with its OWN user name and password (the password minus its lotus=<address> token), so the upstream pool credits the miner's own account; the -miningpool account is used only for the availability probe. Stratum V1 upstreams only (default: 0)
-miningpoolperminerPer-miner upstreams: each ASIC names its own Bitcoin/Litecoin pool and account in its password (pool=host:port, user=<account>, pass=<password>; doc/auxpow-btc-ltc.md 2.2) and its parent work is credited there; one upstream connection per miner session, never shared. Stratum V1 upstreams only (default: 0)
-miningpoolperminerfallbackWith -miningpoolperminer: a miner that names no pool mines on the -miningpool entries with the operator's account (1), or not (0); without that fallback it mines the local anchored parent when the node has one (-mmv3localparent), else it is refused (default: 1)
-miningpoolprobemax=<seconds>Per-miner upstreams: longest probe interval of a failed pool (default: 600)
-miningpoolprobemin=<seconds>Per-miner upstreams: first probe of a failed pool, then doubling (default: 30)
-miningpoolupstreamidle=<seconds>Proxy pools of a parent chain (-miningpool=<chain>:...): an upstream connection that received nothing from its pool for this long is closed, 30 to 86400 (default: 300)
-miningpoolworkersuffixAppend the part of the miner's worker name after its last dot to the -miningpool account (default: 0)
-miningpublichost=<host>Host name or address that miners should use to reach this node's Stratum ports, shown on the public dashboard's Mining tab ('How to mine with us') and in /api/v1/mining/status (default: none: the page asks for this node's address).
-miningpublicworkersPublish per-miner rows (anonymous labels, hashrate, shares; times rounded) on the public REST API and dashboard (default: 0 on mainnet, 1 on testnet and regtest). With 0, only totals are published. Worker names and addresses are never published.
-miningrawsharehours=<n>Hours every individual share is kept in mining.sqlite (older shares remain as per-minute aggregates; 0 = none) (default: 1)
-miningretentiondays=<n>Delete mining history older than <n> days from mining.sqlite (found blocks are always kept); 0 keeps everything, rolled up per hour and per day (default: 0, 0-3650)
-poolfeepercent=<percent>Pool fee percent (0-100). In pool mode defaults to 100.
-poolmodeEnable in-node pool mode (default: 0)
-sharechainEnable P2Pool-style share chain for decentralized mining (default: 0)
-sharechainwindow=<n>Share chain payout window size (default: 360, ~1h at 10s/share)
-sharedifficulty=<n>Initial share difficulty (0 = auto-adjust) (default: 0)
-stratumEnable the built-in Stratum mining server (default: 0)
-stratumauxfastvardiffTest networks only (refused on mainnet): the merged-mining (auxpow) listeners' vardiff raises a fast miner within two or three shares (cleaning its jobs on a raise of 4x or more) and retargets down every 30 s at most (default: 0)
-stratumauxvardiffmax=<scrypt|sha256d>:<d>Test networks only (refused on mainnet): the highest share difficulty vardiff may set on that merged-mining (auxpow) listener, in the parent chain's units (default: no ceiling).
-stratumauxvardiffmin=<scrypt|sha256d>:<d>Test networks only (refused on mainnet): the lowest share difficulty vardiff may set on that merged-mining (auxpow) listener, in the parent chain's units (default: 1, or the listener's difficulty when lower). May be given once per algorithm.
-stratumbind=<addr>Bind Stratum server to this address (default: 0.0.0.0)
-stratumcoinbase=<address>Lotus address paid by the blocks the Stratum server finds. Without a valid one the server still starts, with a warning, and the block reward is burnt (an OP_RETURN output)
-stratumconnrate=<per minute>[:<burst>]New connections per source address per minute, and burst, on every TCP stratum listener; a connection over it is closed at once; 0: no limit (default: 30:60 on mainnet, on the sha256d-auxpow and scrypt-auxpow listeners only; 0 elsewhere)
-stratumdifficulty=<n>Initial share difficulty for Stratum workers (default: 0.5)
-stratumisolationguardStop serving local stratum jobs while this node is isolated (no P2P peer, no pool fleet peer, or a tip most pool peers are not on), so its miners fail over instead of extending a branch nobody else sees; serving resumes by itself. (default: 1, 0 on regtest)
-stratumisolationnopeers=<seconds>Isolation guard: seconds without any P2P peer, or without any pool fleet peer once the node has had one, before the local jobs stop (default: 300)
-stratumisolationtip=<seconds>Isolation guard: seconds most pool peers may announce a tip that is not on this node's chain before the local jobs stop (default: 1200, twice the 600 s block hold)
-stratumlisten=<spec>Bind a Stratum listener with a specific default mining algorithm. Format: <bind>:<port>:<algo>[:<difficulty>][:<chain>], where <chain> (btc, xec, bch or ltc) binds an ASIC listener to one parent chain of -mmv3localparent (one listener per chain: the miner chooses the chain by its port; a node with several local parents of an algorithm refuses a listener of that algorithm without a chain), and <algo> is one of 'lotushash' (native LotusHash), 'scrypt-auxpow' (DOGE/LTC ASICs, aliases 'auxpow' and 'scrypt'), 'sha256d-auxpow' (Bitcoin ASICs, aliases 'sha256d' and 'sha256'), 'dual', or 'auto' (legacy behaviour, default). Can be specified multiple times to open several ports. Inbound connections to a listener default to its <algo>; the user-agent hint in mining.subscribe still wins. When specified, supersedes -stratumbind / -stratumport.
-stratummaxperip=<n>Maximum concurrent TCP Stratum sessions from one source IP (IPv6: one /64); 0 = no limit. Keeps one address from taking every -stratummaxworkers slot (default: 64)
-stratummaxworkers=<n>Maximum concurrent Stratum workers (default: 1024)
-stratummsgrate=<rate>[:<burst>]Requests per second and burst, per TCP Stratum session; a request over it is answered 'Rate limited' (default: 200:2000)
-stratumperipexempt=<subnet>Source subnet exempt from -stratummaxperip, e.g. the address of a NAT or proxy every miner reaches the node through. Can be specified several times (default: none)
-stratumpooladdress=<addr>Lotus address receiving pool payouts/fees. Required when poolmode=1 or pool fee > 0.
-stratumpoolfee=<percent>Legacy alias for -poolfeepercent.
-stratumport=<port>Listen for Stratum connections on <port> (default: 3334, napoleontest: 20633). Ignored when -stratumlisten is specified.
-stratumpreferlocalPrefer local node mining when synced over proxy (default: 1). Set to 0 to always prefer upstream pools.
-stratumproxy=<spec>Add an upstream pool for proxy/failover routing. Format: host:port:user[:pass[:priority]]. Can be specified multiple times. Lower priority = preferred. (default: none)
-stratumvardiffEnable variable difficulty for Stratum workers (default: 1)
-stratumvardiffmax=<n>Highest share difficulty vardiff may set, 0 = no explicit limit (default: 0; the network cap and 1e+12 still apply)
-stratumvardiffmin=<n>Lowest share difficulty vardiff may set; a lower starting difficulty is kept (default: 0.001)
-stratumvardiffretarget=<n>Seconds between vardiff retarget checks (default: 90)
-stratumvardifftarget=<n>Target seconds between shares for vardiff (default: 15)
-stratumwarnsoloLog a warning when solo-mining locally with no upstream pool available (default: 1)
-stratumworkertimeout=<n>Worker idle timeout in seconds (default: 300)
-stratumwsconnrate=<n>New browser miner handshakes per client IP per minute (default: 20)
-stratumwsipheader=<name>Header carrying the client IP from a trusted proxy (default: X-Real-IP)
-stratumwsipsubmitrate=<rate>[:<burst>]mining.submit per second and burst, per browser client IP (default: 20:60)
-stratumwslisten=<bind>[:<port>[:<diff>]]Open a WebSocket stratum listener for the dashboard's browser miner (native LotusHash stratum, one JSON message per WebSocket text message). Without <port>: 3335 (napoleontest: 13335). <diff> is the initial share difficulty (default: 0.005). Can be specified several times. Bind to 127.0.0.1 or to the interface the reverse proxy reaches; never to a public address without a proxy. Requires -stratum (default: none, disabled)
-stratumwsmaxperaddress=<n>Maximum authorized browser miner sessions per payout address (default: 16)
-stratumwsmaxperip=<n>Maximum browser miner sessions per client IP (IPv6: per /64), connections still in their handshake included; behind a -stratumwstrustedproxy, per forwarded client IP (default: 64)
-stratumwsmaxpersubnet=<n>Maximum browser miner sessions per client /24 (IPv6: per /48), counted like -stratumwsmaxperip (default: 256)
-stratumwsmaxsessions=<n>Maximum browser miner sessions, separate from -stratummaxworkers (default: 4096)
-stratumwsmindiff=<n>Lowest share difficulty for browser miner sessions; vardiff never goes below it (default: 0.001)
-stratumwsorigin=<origin>Allow browser miner handshakes from this Origin (scheme://host[:port]), or '*' for any. Can be specified several times (default: the Origin host must equal the Host header's host). Browser extension origins (chrome-extension://, moz-extension://, safari-web-extension://) are always allowed
-stratumwspath=<path>Request path a WebSocket handshake must use (default: /api/v1/mining/ws)
-stratumwspublicurl=<url>Absolute ws:// or wss:// URL of the browser miner endpoint, published in /api/v1/mining/status for pages that cannot use the same-origin path (default: none)
-stratumwssubmitrate=<rate>[:<burst>]mining.submit per second and burst, per browser session (default: 5:20)
-stratumwstrustedproxy=<subnet>Believe the client IP header (-stratumwsipheader) only from TCP peers in this subnet. Can be specified several times; replaces the default (default: 127.0.0.0/8 and ::1/128)
-thinrelayShare relay (doc/thin-share-relay.md): serve stratum miners with jobs of an upstream full pool node of the fleet and forward their shares to it over the NNG pool bridge. The node takes no pool decision (default: 0). Needs -stratum; refused with -poolpayouts
-thinrelaycafile=<file>PEM certificates trusted for tls+tcp:// upstreams of -thinrelay (the fleet's certificates; default: the system bundle)
-thinrelayid=<label>Label the upstream shows for this relay (printable, 32 characters kept; default: thin-relay)
-thinrelaypoll=<ms>Template refresh interval of -thinrelay (also on every tip change; default: 2000)
-thinrelaysharerate=<n>Shares per second -thinrelay forwards (burst 5x; default: 400, below the upstream's per-source -poolnngsharerate)
-thinrelaysharetimeout=<seconds>A share that could not be sent within this time is answered as an error (default: 30)
-thinrelaytlsverifyVerify the upstream's TLS certificate and name (default: 1). 0 encrypts without authenticating the upstream: a man in the middle could then serve work that pays it
-thinrelayupstream=<host:port|url>Upstream pool node of -thinrelay, repeatable, in priority order: host[:port] (tls+tcp, port 10610) or an NNG URL (tls+tcp://, tcp://, ipc://). Default on mainnet: the fleet's public NNG endpoints

Pool #

OptionMeaning
-poolblockpushPush the blocks the fleet finds at once: the full block to every pool peer (poolblock), a compact block or a header to every other peer; a pool peer validates and pushes it on (doc/pool-payouts.md 4.6) (default: 1)
-poolburnbps=<n>XPI burnt by the record outputs, in basis points of the block subsidy, 0-100 (default: 1)
-poolcleanupref=<ref>Reference of the one-off pool ledger cleanup (default: CLEANUP-2026-12; 1-16 characters of [A-Za-z0-9._-]). Another value restarts a stalled cleanup from the ledger as it is; part of the pool configuration digest when not the default (doc/pool-exact-ledger.md 7.4)
-poolfeeaddress=<address>Address receiving the pool fee
-poolfeebps=<n>Pool fee in basis points of the distributed reward, 0-1000, paid to -poolfeeaddress, which is then required (default: 0, no fee)
-poolgossiplogkeephours=<n>Hours of pool gossip events (the dashboard's gossip list, diagnostic only) kept in pool.sqlite (1-720, default: 24)
-poolgossiplogmaxrows=<n>At most n pool gossip events kept in pool.sqlite; 0 = none recorded (default: 100000)
-poolgossiplograte=<n>At most n pool gossip events of one kind (command, direction, reason) recorded per minute, the rest only counted (default: 30)
-poolid=<id>Pool id written in the POOL record, 1-16 ASCII letters or digits; fleet peers must use the same (default: FRENCHBTC)
-pooljobdeltaSend pool jobs to fleet peers that support it as deltas against a job they hold, and leave out of catch-up answers the jobs and shares they already hold (poolhello flag; peers without it get full jobs as before; doc/pool-job-delta.md) (default: 1)
-poolledgerquorumblocks=<n>New blocks the difference with the quorum must last before the balances are taken, 1-10000; 0 on regtest only (default: 6)
-poolledgerquorumcooldown=<seconds>Seconds after the balances were taken before they may be taken again automatically, 60-604800; lower on regtest only (default: 1800)
-poolledgerquorummin=<n>Pool peers that must announce the same ledger digest (and be a strict majority of the pool peers), 2-1000 (default: 3)
-poolledgerquorumsyncTake the fleet's pool balances when this node's ledger digest differs, at its tip, from the one a strict majority of its pool peers announce (after -poolledgerquorumblocks blocks; never in initial block download, never from one peer's word: the balances must hash to the majority's digest). 0: only by the poolledgersync RPC (default: 1; doc/pool-ledger-sync.md)
-poolmaxpayees=<n>Most payee outputs per coinbase, 1-2000 (default: 92, the on-chain record capacity at 223 bytes per output with the 9-character default pool id and the 2 record outputs allowed before Napoleon; from Napoleon the record may use up to 16 outputs, 820 payees; payees beyond the capacity are paid but not described, FLAG_TRUNCATED)
-poolminpayout=<amount>Smallest balance paid in a coinbase; smaller balances carry over (default: 1 XPI)
-poolnodeid=<n>Fleet node id 0-255, unique per mining node, first byte of every extranonce1 (required with -poolpayouts)
-poolownertimeout=<n>Seconds a block carrying our pool id waits for its block proof (the fleet's verified block share with that hash) before it is classified as a spoof attempt and settles nothing; a proof that arrives later still settles it (default: 600)
-poolpayoutsPool payouts: stratum blocks pay every miner of the PPLNS window directly in the coinbase, carry the POOL on-chain record, and gossip shares with trusted fleet peers (doc/pool-payouts.md) (default: 0)
-poolpplnsmaxshares=<n>Most shares in a PPLNS window, 100-100000 (default: 20000)
-poolpplnswindow=<tenths>PPLNS window in tenths of the network difficulty, 10-200 (default: 40 = 4.0x)
-poolquorumkeys=<fingerprint>[,<fingerprint>...]The pool nodes whose ledger votes count in the ledger quorum (doc/pool-ledger-sync.md): the fingerprints of their P2P identities (64 hex characters each, as lotus-cli p2pidentity and getnetworkinfo show them), this node's own included. A vote counts only on an encrypted connection where the peer proved a listed identity; the node id a peer states is not looked at, and a majority is a majority of the list. Can be given several times. Part of the pool configuration digest when set: every pool node of a fleet must carry the same list, set at once. (default: none, every trusted pool peer votes, one vote per node id it states)
-poolreconcileblocks=<n>New blocks a same-tip ledger digest mismatch must last through before the reconcile; lower than 2 on regtest only (default: 2)
-poolreconciledelay=<n>Seconds a same-tip ledger digest mismatch with a pool peer must last before it is asked for a catch-up (ledger fork reconcile); lower than 120 on regtest only (default: 120)
-poolreconcilestalepending=<n>Seconds one of our blocks may wait for its ownership proof or window, while a pool peer at our tip reports another ledger, before that peer is asked for a catch-up at once (no -poolreconciledelay wait); lower than 60 on regtest only (default: 60)
-poolrecordmaxbytes=<n>Largest POOL record output script, 100-8005 (default: 223; nodes before 11.5.40 reject blocks with larger OP_RETURNs)
-poolrefreshsec=<n>Rebuild the stratum job every n seconds when the split changed; 0 = only on a new tip (default: 30)
-poolretentiondays=<n>Days of shares, windows, jobs, block proofs' shares and stratum diagnostics kept in pool.sqlite: the horizon over which a late block proof still settles from its window (gossip events: -poolgossiplog*); 0 = keep everything (default: 30)
-poolsettlementactivation=<mtp>Median-time-past from which pool blocks carry and nodes apply ledger settlements; 0 uses the built-in release constant, 1797249600 = 2026-12-14 12:00 UTC (12.5.8: accepted on mainnet too; part of the pool configuration digest when set, so every pool node of a fleet must set the same value at once; doc/pool-exact-ledger.md)
-poolsettlementaddress=<address>The pool settlement account: the only account a ledger settlement (record "S" section) may debit (default: the built-in owner address on mainnet and testnet, none on regtest; doc/pool-exact-ledger.md)
-poolsettletimeout=<n>Seconds to wait for the shares of a pool block's window before settling it degraded (default: 600)
-poolstartupvacuum=<pct>VACUUM pool.sqlite at startup when free pages are at least this percentage of the file and it was made before 12.4.17 (auto_vacuum NONE); converts it to incremental vacuum. 0 = never (default: 20)
-poolstratumurl=<url>Public stratum URL printed on the dashboard's pool page, stratum+tcp://host:port or stratum+ssl://host:port; repeatable, at most 4 (default: none, the page derives one from its own host and the stratum ports)
-poolthinresyncsec=<n>Thin pool member with a full local UTXO set: seconds its ledger must differ from every fleet peer serving ledger snapshots, on the same tip, before it takes the fleet's balances again, 5-86400 (default: 60; doc/thin-mode.md)
-poolnngbridgeNNG pool bridge (doc/pool-nng-bridge.md): an external stratum coordinator on this host gets pool templates (GetMiningTemplateRequest.pool_payouts) and reports the shares it accepts (SubmitPoolSharesRequest); they are verified, credited and gossiped like native shares. Needs -poolpayouts and -nngrpc (default: 0)
-poolnngbridgeremoteAllow -poolnngbridge with a -nngrpc tcp:// address that is not loopback. The NNG socket is unauthenticated: only behind a firewall that admits the coordinator alone (default: 0)
-poolnngsharerate=<n>Share reports accepted per second from the coordinator, 1..100000 (default: 500; burst 10 x the rate)
-poolnngtemplaterate=<n>Pool templates built per second for the coordinator, 1..100 (default: 10; burst 2 x the rate)

Wallet #

OptionMeaning
-avoidpartialspendsGroup outputs by address, selecting all or none, instead of selecting on a per-output basis. Privacy is improved as an address is only used once (unless someone sends to it after spending from it), but may result in slightly higher fees as suboptimal coin selection may result due to the added limitation (default: 0 (always enabled for wallets with "avoid_reuse" enabled))
-disablewalletDo not load the wallet and disable wallet RPC calls
-fallbackfee=<amt>A fee rate (in XPI/kB) that will be used when fee estimation has insufficient data. 0 to entirely disable the fallbackfee feature. (default: 0.00)
-keypool=<n>Set key pool size to <n> (default: 1000). Warning: Smaller sizes may increase the risk of losing funds when restoring from an old backup, if none of the addresses in the original keypool have been used.
-maxapsfee=<n>Spend up to this amount in additional (absolute) fees (in XPI) if it allows the use of partial spend avoidance (default: 0.00)
-mintxfee=<amt>Fees (in XPI/kB) smaller than this are considered zero fee for transaction creation (default: 0.001)
-paytxfee=<amt>Fee (in XPI/kB) to add to transactions you send (default: 0.00)
-rescanRescan the block chain for missing wallet transactions on startup
-spendzeroconfchangeSpend unconfirmed change when sending transactions (default: 1)
-wallet=<path>Specify wallet database path. Can be specified multiple times to load multiple wallets. Path is interpreted relative to <walletdir> if it is not absolute, and will be created if it does not exist (as a directory containing a wallet.sqlite file). A legacy Berkeley DB wallet (wallet.dat, 12.4.15 and older) is converted to SQLite when loaded, the original being kept as wallet.dat.bdb-backup. For backwards compatibility this will also accept names of existing legacy wallet files in <walletdir>.)
-walletbroadcastMake the wallet broadcast transactions (default: 1)
-walletdb=<sqlite>Wallet database backend (default: sqlite, the only one). Berkeley DB was removed in 12.4.17: 'bdb' is ignored with a warning, and legacy wallet.dat files are converted to SQLite when loaded.
-walletdir=<dir>Specify directory to hold wallets (default: <datadir>/wallets if it exists, otherwise <datadir>)
-walletforkid=<auto|lotusonly>Sighash fork value of the wallet's signatures. auto: replay_protection.sign_fork_value of getblockchaininfo for the next block. lotusonly: 0. The signing RPCs take a forkid argument for one call (default: auto)
-walletnotify=<cmd>Execute command when a wallet transaction changes. %s in cmd is replaced by TxID and %w is replaced by wallet name. %w is not currently implemented on windows. On systems where %w is supported, it should NOT be quoted because this would break shell escaping used to invoke the command.
-maxtxfee=<amt>Maximum total fees (in XPI) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: 10.00)

Logging, debugging and tests #

OptionMeaning
-debuglogfile=<file>Specify location of debug log file. Relative paths will be prefixed by a net-specific datadir location. (0 to disable; default: debug.log)
-versionPrint version and exit
-testnetforkheight=<n>After reaching this block height, disconnect from peers running version 9.x.x or earlier. This allows initial sync from mainnet nodes, then isolates to upgraded (10.x.x+) peers for upgrade testing. Set to 0 to disable version filtering. Works on both mainnet and testnet. (default: 0)
-debug=<category>Output debugging information (default: 0, supplying <category> is optional). If <category> is not supplied or if <category> = 1, output all debugging information. <category> can be: net, tor, mempool, http, bench, zmq, walletdb, rpc, estimatefee, addrman, selectcoins, reindex, cmpctblock, rand, prune, proxy, mempoolrej, libevent, coindb, qt, sqlitedb, validation, avalanche, mining, stratum, mergemine, slp, thin, pool, parentchain, childchain, modules, finality, launch, sitemap, upgrades.
-debugexclude=<category>Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories.
-help-debugPrint help message with debugging options and exit
-logipsInclude IP addresses in debug output (default: 0)
-logsourcelocationsPrepend debug output with name of the originating source location (source file, line number and function name) (default: 0)
-logtimestampsPrepend debug output with timestamp (default: 1)
-mockblocktime=<n>Automatically generate a new block every <n> seconds for testing. Requires -testnetforkheight to be set. Use 0 to disable. This allows rapid testing of consensus changes without real mining. (default: 0)
-printtoconsoleSend trace/debug info to console instead of debug.log file (default: 1 when no -daemon. To disable logging to file, set debuglogfile=0)
-resettestnetForce rewind to testnetforkheight even in mock mode. Use this to reset your mock blockchain and start fresh. (default: false)
-scriptcostlogLog the operation cost of every validated input (doc/contracts/cost-model.md). Log only, never changes validation (default: 0)
-shrinkdebugfileShrink debug.log file on client startup (default: 1 when no -debug)
-uaclientname=<clientname>Set user agent client name
-uaclientversion=<clientversion>Set user agent client version
-uacomment=<cmt>Append comment to the user agent string
-testnetUse the test chain. Equivalent to -chain=test.
Source share/www/docs/options.md in the lotusd repository
Checked against src/init.cpp src/util/system.cpp test/lint/lint-docs-options.py