- global.config.json contains the configuration for the TON mainnet. It is included with the chart and used by default unless an override is provided.
- testnet-global.config.json contains the configuration for the TON Testnet.
Configuration structure
The global config contains three top-level sections:| Section | Purpose |
|---|---|
dht | Bootstrap DHT nodes used to discover and connect to network peers. |
liteservers | Public liteserver endpoints used by lite clients. |
validator | Network identity: zero state, init block, and hardfork references. |
The global config is not templated or modified by Helm values. The file is passed to the node without changes.
dht
dht defines properties for bootstrap distributed hash table (DHT) servers used to find peers during initial node setup. It contains three parameters:
kanda– DHT configuration parameters. In a Kademlia-based DHT:k– the maximum number of nodes stored in a routing bucket.a– parallel lookup parameter specifying the number of nodes queried concurrently during a DHT lookup operation.
static_nodes– an array of node objects. Each node includes:@type– node type;dht.node;id– node identifier;addr_list– address list object containing:addrs– array of address objects with@type,ip, andport;version,reinit_date,priority,expire_at– addresses version and lifecycle data.
version– node version;signature– base64-encoded cryptographic signature of the node.
liteservers
liteservers defines an array of public endpoints used by lite clients (not by the node itself) to retrieve blockchain data, including balances, transactions, blocks, and network configuration. Each server object has three properties:
ip– IP address of the server, represented as a signed 32-bit integer;port– port number on which the server operates;id– object representing the server’s identifier, with two properties:@type– type of the public key;pub.ed25519;key– server public key, represented as a base64-encoded string.
validator
validator defines global validator configuration parameters. It contains:
@type– configuration type;validator.config.global;zero_state– reference to the zero blockchain state;init_block– reference to the initial block used to start synchronization;hardforks– array of hardfork reference points.
zero_state, init_block, and each entry in hardforks include:
workchain– workchain identifier;shard– shard identifier;seqno– sequence number of the block;root_hash– base64-encoded root hash of the block;file_hash– base64-encoded file hash of the block.
When to override
In most deployments, the global config does not require modification. A custom config is required only in the following cases:- When using a testnet instead of mainnet, download the testnet config from the official source.
- When running a private network with custom DHT nodes and overlays, provide a custom config.
- When the bundled config becomes outdated, fetch a fresh copy. The official config may change over time, for example, updated DHT nodes or init blocks.
How to override
-
Download the latest mainnet config:
-
Pass it to the Helm chart:
values.yaml:
values.yaml
values.yaml