Mine SOST solo, step by step.
Seven steps from a fresh computer to a running miner. Every command below is the validated one for the production release tag v30000-final.1 (commit 59a4e666). Copy each one, compare your screen with the expected result, and move on.
STEP 1 Choose your system
SOST runs on Linux. On Windows it runs inside WSL2 (a Linux system that Windows installs for you).
Press Win+R, type cmd and press Enter. In the black window run:
wsl --install
ubuntu and press Enter.Open your terminal application and continue with step 2.
apt on Linux / WSL2 only. Until a procedure is tested on macOS, this launchpad does not give macOS commands. Use a Linux machine or a Linux VM, or follow the Getting Started page at your own risk.STEP 2 Check your resources
| Memory, mining | 8 GB RAM or more (4 GB dataset + 4 GB scratchpad). Several threads share one scratchpad.verified in source: src/pow/convergencex.cpp:48-50 · include/sost/params.h:847 (CX_SCRATCH_M = 4096) · src/sost-miner.cpp:2482 (“Share 1 scratchpad”) |
|---|---|
| Memory, node only | About 500 MB. A node verifies blocks without building the 4 GB dataset.documented in the Quick Start; not measured here · O(1) verification: include/sost/pow/convergencex.h:34 |
| CPU | A regular CPU. Use --threads N for N cores. No specialised hardware, no pools. |
| Disk | The source tree, the build and the chain data. NOT DOCUMENTED |
| Connection | Any connection. The node connects to seed.sostcore.com:19333. |
| Time | About 30 minutes. The build takes 2–5 minutes; the first sync from minutes to a quarter of an hour. |
Not enough free memory? See “std::bad_alloc” in step 7. No compatibility is promised beyond what is listed here.
STEP 3 Install the tools and build SOST
No validated macOS commands. The commands below are for Linux / WSL2.
sudo apt update && sudo apt install -y build-essential cmake libssl-dev libsecp256k1-dev git
Run these one at a time, pressing Enter after each:
git clone https://github.com/Neob1844/sost-core.git
sost-core is created.git: command not found: repeat command 1.cd sost-coregit fetch --tagsgit checkout v30000-final.1
59a4e666 (“detached HEAD” is normal for a tag).did not match any file(s): run git fetch --tags again, then this command.mkdir build && cd buildcmake .. -DCMAKE_BUILD_TYPE=Release
cmake: command not found, openssl/sha.h or secp256k1.h: No such file: repeat command 1.make -j$(nproc)
[100%] Built target.SHA256SUMS.STEP 4 Start your node
The node joins the SOST network and downloads the chain. First choose your own RPC password and keep it in a private file. There is no SOST-wide password: it protects your node, and the miner reads the same file.
mkdir -p ~/.sost && umask 077
openssl rand -base64 30 > ~/.sost/rpc.pass
chmod 600 ~/.sost/rpc.pass
~/.sost/rpc.pass exists and only you can read it.build/ folder.cp ../genesis_block.json ../sost-node --genesis genesis_block.json --connect seed.sostcore.com:19333 \
--rpc-user PICK_A_USERNAME --rpc-pass-file ~/.sost/rpc.pass --profile mainnet --p2p-enc on
[BLOCK] Height N accepted. Fast sync is on by default.--rpc-pass-file error: the file from command 1 is missing or not private (mode 600).ubuntu) for step 5.Why a file? Anything typed on a command line is visible to other users of the machine. The RPC password is not your wallet passphrase. If you mine against a remote node, use an SSH tunnel; same-machine setups need nothing else.
STEP 5 Create your wallet and mining key
Since block #7,100 every block must be signed by a mining key (SbPoW). The miner reads that key from your wallet file.
./sost-cli newwallet
wallet.json is created.sost-core/build../sost-cli getnewaddress "mining"
sost1c6dac46bb3a43cefe…. Write it down.wallet.json not found: run command 1 first.wallet.json holds your private keys, including the mining key. Never share it, never upload it, never paste it anywhere, and nobody from SOST will ever ask for it. If you lose it, the coins are gone: copy it to a USB drive now and keep that copy offline.STEP 6 Start, watch and stop the miner
cd ~/sost-core/build./sost-miner --wallet wallet.json --mining-key-label mining \
--genesis genesis_block.json --chain chain.json \
--rpc 127.0.0.1:18232 \
--rpc-user SAME_USERNAME_AS_STEP_4 \
--rpc-pass-file ~/.sost/rpc.pass \
--blocks 999999 --profile mainnet --threads 4
BLOCK FOUND!. Finding blocks is a matter of probability, not a schedule.Connection refused: the node from step 4 is not running. std::bad_alloc: not enough memory (step 7)../sost-cli getbalance --rpc 127.0.0.1:18232 \
--rpc-user YOUR_USER --rpc-pass-file ~/.sost/rpc.pass
Rewards depend on how many other miners are active and are never guaranteed. Each block currently splits its reward 50 % miner / 50 % DTD. See the 288 Orbit for how the DTD works.
STEP 7 Guided diagnostic
Pick what you see. This check runs only in your browser and asks for nothing else.
~/.sost/rpc.pass or your wallet.json into any website, chat or support request, including this one.