Node Guide#

A node is a host connected to the DecentralChain network that validates transactions, stores blocks, and — if it meets the generating-balance requirement — produces new blocks under Leased Proof of Stake. This section covers running your own node: getting the software, building it, and configuring it. For the economics of block generation (rewards, leasing), see the Node article in the DecentralChain fundamentals section.

Getting the Node#

The node implementation lives at Decentral-America/node-scala, forked from Dcc 1.6.x. Docker is the simplest way to run it; to install directly, see Linux, macOS or Windows. All are written in Scala, built with SBT, and packaged from the same source for either network:

sbt packageAll                   # Mainnet
sbt -Dnetwork=testnet packageAll # Testnet

Configuration#

Network-specific defaults are defined in network-defaults.conf in the node-scala repository. Pass your own config file (based on the mainnet/testnet template) as the argument to the JAR to override generating-node settings such as the block reward vote and wallet seed.