Mining

2 min read

Mining LDG

LiteDAG uses RandomLiteDAG, a CPU-optimized proof-of-work algorithm derived from RandomX. Anyone with a computer can mine.

Option 1: Built-in CPU Miner

The node binary includes a basic single-threaded CPU miner. Good for getting started quickly.

# Download and build the node
git clone https://github.com/litedag-chain/litedag-blockchain.git
cd litedag-blockchain
go build -o litedag-node ./cmd/litedag-node

# Start mining
./litedag-node --mine <your-wallet-address> --data-dir ./data

The node will sync the chain, then start mining to your address.

For better performance, use XMRig pointed at the LiteDAG stratum port. XMRig uses all CPU threads and is significantly faster.

./xmrig -o node.litedag.com:6312 -u <your-wallet-address> -a rx/litedag

Or in your config.json:

{
  "pools": [
    {
      "url": "node.litedag.com:6312",
      "user": "<your-wallet-address>",
      "algo": "rx/litedag"
    }
  ]
}

Option 3: Run Your Own Node + Mine

For the best decentralization, run your own node and mine against it locally:

# Start node with public RPC and stratum
./litedag-node --data-dir ./data --public-rpc --stratum-bind-ip 0.0.0.0

# In another terminal, point XMRig at your local node
./xmrig -o 127.0.0.1:6312 -u <your-wallet-address> -a rx/litedag

Block Reward

Each block rewards 20 LDG, split as:

RecipientShareAmount
Miner50%10 LDG
Staker40%8 LDG
Treasury10%2 LDG

Block time is 15 seconds. The reward decreases by 10% every season (91 days), with a permanent tail emission of 1 LDG/block.

Getting a Wallet Address

Create a wallet using the CLI or the web wallet:

go build -o litedag-wallet-cli ./cmd/litedag-wallet-cli
./litedag-wallet-cli
> create
> <wallet-name>
> <password>
> <password>

Your address starts with v and looks like: vhcunjkejkshqf4jjx9gfnu52162mvoa9eoqhi

Ports

PortProtocolPurpose
6310P2PNode-to-node communication
6311RPCJSON-RPC API
6312StratumMining connections

Next Steps