Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

ltonetwork/docker-public-node

Repository files navigation

The Docker image is build directly from ltonetwork/lto-public-chain. This repository is no longer in use.


LTO Public Node in Docker

Running the image

The simplest way to run a container:

docker run -it ltonetwork/public-node

For MAINNET:

docker run -p 6869:6869 -e LTO_HEAP_SIZE=2g -e LTO_ENABLE_REST_API -v YOUR_LOCAL_PATH_HERE:/lto ltonetwork/public-node    

For TESTNET:

docker run -p 6869:6869 -e LTO_NETWORK=TESTNET -e LTO_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/lto ltonetwork/public-node    

You can run container with predefined environment variables:

Env variable Description
LTO_WALLET_SEED Plain text seed for node wallet. Container converts it to base58.
LTO_WALLET_SEED_BASE58 Base58 encoded seed. (Supersedes LTO_WALLET_SEED)
LTO_WALLET_PASSWORD Password for wallet file.
LTO_API_KEY ApiKey used for the rest api authentication
LTO_NETWORK Available values are MAINNET, TESTNET and CUSTOM. (Default: MAINNET)
LTO_LOG_LEVEL Node logging level, available values: OFF, ERROR, WARN, INFO, DEBUG, TRACE.
LTO_HEAP_SIZE Java Heap Size limit in -X Command-line Options notation (-Xms=[your value]). More details here
LTO_CONFIG_FILE Path to your LTO Configuration file.
LTO_DECLARED_ADDRESS String with IP address and port to send as external address during handshake. Could be set automatically if UPnP is enabled. If declared-address is set, which is the common scenario for nodes running in the cloud, the node will just listen to incoming connections on bind-address:port and broadcast its declared-address to its peers.
LTO_NODE_NAME Node name used in the handshake when connecting to other nodes
LTO_ENABLE_REST_API To enable the REST API. (For MAINNET default is false for TESTNET default is true
LTO_FEATURES Features you wish to vote. E.g. set to 4 to start voting for the Smart Accounts feature. You can also vote for multiple features at by comma seperating them (e.g. 4,5)

Note: All variables are optional.