java-tron process. On the first deploy, the node seeds from a recent community snapshot to cut sync time.
To deploy one, open Deploy Node, pick an executor that supports Tron, then choose the network, node type, client (java-tron), and version. The wizard offers exactly what your executor declares.
Networks and resources
Tron runs onmainnet and on nile, Tron’s test network. Defaults are pre-filled in the deploy wizard per node type; lower them with caution.
The deploy wizard doesn’t offer Lite on
nile.
Clients
In-place update steps are available between the listed versions; the ones carrying a security fix are marked security-urgent, the rest are optional — see Update a node’s version. The latest step,
4.8.2.2 → 4.8.2.4, is security-urgent: 4.8.2.4 (and the skipped 4.8.2.3) are mandatory releases, and the update keeps the existing database. Once the network turns on TVM storage optimization (chain parameter 99 or 102), going back to 4.8.2.2 is no longer safe — treat the update as one-way. Event streaming needs 4.8.2 or newer.
Ports
Ports are managed for you and aren’t user-overridable. Direct publishes both
8090 and 50051; Local closes both; Public domain proxies the HTTP API and keeps gRPC local (see gRPC and WebSocket ports). The solidity and PBFT ports are never published.
java-tron takes no bind address, so on an Agent host Novacula keeps the private ports — and
8090 / 50051 unless they’re set to Direct — closed with the host firewall. Each port is reserved per node, so two Tron nodes on one host don’t collide on them.Node types
Tron offers Full and Lite, and the choice is really a choice of snapshot:- Full — seeds from the full compressed snapshot and keeps deep block and transaction history. Heaviest on disk.
- Lite — seeds from the lite snapshot, so the node starts at a recent block instead of carrying history back toward genesis. Roughly a quarter of the disk on mainnet, and it serves current chain state and transactions the same way.
Configs
java-tron declares one config,event-plugin-config, for event streaming. The rest of the node’s config.conf — networking, ports, peers, the data directory — is managed by Novacula and isn’t editable.
Event streaming to MongoDB
A Tron node can stream chain events to a MongoDB destination through java-tron’s event plugin. It’s optional and off by default. The plugin is the node’sevent-plugin-config config (labelled event.subscribe): set it on the deploy wizard’s Configs step, or later with Edit on the node’s Configs panel — see Configs. Turn on its Enabled switch, fill in a reachable MongoDB, and pick what to stream. It’s offered only for java-tron 4.8.2 or newer and needs an executor on 0.1.19 or newer; on an older executor a saved config is read-only, with This executor predates node configs; upgrade it to edit them.
The config’s keys are flat, as java-tron’s event plugin names them:
The triggers are java-tron’s own:
block, transaction, contractevent, contractlog, solidity, solidityevent, and soliditylog, in any combination. On an executor on 0.1.20 or newer, a new config starts from the executor’s suggested values — port 27017, database tron_events, version 0, contractParse on, and the contractevent trigger on — with host and credentials left empty.
A trigger whose collection is left blank writes to a collection named <node id>_<trigger>, for example <node id>_contractevent, so nodes sharing one database don’t mix their events; an executor older than 0.1.20 names it after the trigger alone. If you set names yourself and several nodes share a database, keep them distinct.
Hub checks the plugin’s keys when you save: a misspelled key is refused with component '<role>' config 'event-plugin-config' has undeclared key '<key>' instead of being silently ignored.
While the node syncs
java-tron slows its block import to the speed the plugin writes at, so a node streaming while it catches up can fall behind the chain and never converge. An executor on 0.1.20 or newer therefore holdsevent-plugin-config back until it has seen the node synced once — on a new node, and when you enable the config on a node that is still syncing. When the plugin is released, expect a single restart. Nodes already running when their executor was upgraded aren’t affected.
Resuming a historical backfill
With a start block set and at least one trigger enabled, a pre-start step runs on every node start and asks MongoDB (with a 5-second timeout) how far each enabled collection got. Replay then resumes from the lowest of those highest blocks, minus a safety margin of 1,000 blocks, and never earlier than your configured start block — so a restart continues the backfill instead of starting it over. Re-writing the blocks in the margin is harmless, because events are upserted.- A collection is empty — replay starts from the configured start block.
- MongoDB doesn’t answer — the node keeps the resume point it used last time.
- The resume step itself is unavailable — the node still starts, using the resume point written on an earlier start, or the configured start block if there is none.