- Run a fully synchronized Yitcoin node and create a receiving address in that wallet. Confirm
getblockchaininfo reports "chain": "yitcoin" and getconnectioncount is above zero.
- Download a successful platform build from the Yitcoin miner workflow. The CPU miner is a separate program; the wallet GUI has no built-in miner.
- Copy
miner.example.json to a private miner.json. Set algo to sha256d, url to http://127.0.0.1:19432, enter a dedicated miner RPC username/password, your own YTC address as coinbase-addr, and start with two threads.
- Start the miner with
./cpuminer --config=miner.json on Linux/macOS or .\cpuminer.exe --config=miner.json on Windows. Stop it with Ctrl+C. Watch CPU temperature and stop if the machine overheats.
Keep RPC private. Node RPC is local at 127.0.0.1:19432; never expose it to the internet or forward it through Nginx. Do not use the Explorer's read-only RPC account for mining. Give a dedicated miner account only template/submission methods (getblocktemplate and submitblock); allow getmininginfo only if your miner needs the status call. Keep the password in the local miner config and never commit it.
{
"algo": "sha256d",
"url": "http://127.0.0.1:19432",
"user": "LOCAL_MINER_RPC_USERNAME",
"pass": "LOCAL_MINER_RPC_PASSWORD",
"coinbase-addr": "YOUR_YTC_RECEIVING_ADDRESS",
"threads": 2
}
Use the placeholder names only as a template. Put the real password in your local miner file; on Linux/macOS, restrict it with chmod 600 miner.json.
Solo mining is probabilistic: a miner earns no per-share payout. Only a valid block accepted by the network pays the coinbase. Under the current rules from block 200, 2% of the subsidy goes to the configured owner address; this is a consensus rule, not a pool fee. Transaction fees go to the miner. Coinbase rewards require 100 blocks to mature. A separate Stratum pool is not currently provided.
If another person mines independently, they should run their own synchronized Yitcoin node and miner, or use a private SSH tunnel to a node you control. For a tunnel, keep the server RPC bound to loopback and run this on the miner computer:
ssh -N -L 127.0.0.1:29432:127.0.0.1:19432 node-user@your-server
For a tunnel, set the miner's URL to http://127.0.0.1:29432. P2P uses port 19433; it is not an RPC port. Never open RPC publicly or share wallet files, seeds, or private keys.