Download 29.5.knots20260508 for your architecture (for example x86_64-linux-gnu or aarch64-linux-gnu):
- Official builds: bitcoinknots.org
- GitHub release: v29.5.knots20260508
- Source: github.com/bitcoinknots/bitcoin
Check the build against SHA256SUMS and SHA256SUMS.asc in the files folder. Do not set chain=testnet4. Keep the same data directory if you already have a mainnet node.
1. Knots on mainnet
Minimal bitcoin.conf. txindex=1 is not required for DATUM or getblocktemplate. Working nodes often add extra knobs such as consensusrules=rdts, maxtipage, and a larger mempool. blocknotify via /NOTIFY or killall -USR1 both work:
server=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
rpcuser=USER
rpcpassword=PASS
# optional: notify DATUM on new blocks
blocknotify=curl -fsS -o /dev/null http://127.0.0.1:7152/NOTIFY
Default P2P port is 8333. Forward inbound TCP 8333 on your router to this machine so other nodes can connect to you. Default RPC port is 8332. Leave RPC on localhost.
bitcoin-cli getblockchaininfo
bitcoin-cli getdeploymentinfo
# blake2b.height == 961640 and blake2b.active == true
# deployments.reduced_data.height == 961640 and active == true
# deployments.long_coinbase_maturity.type == "flagday"
# deployments.long_coinbase_maturity.height == 979919
# deployments.long_coinbase_maturity.maturity == 25920
# deployments.long_coinbase_maturity.coinbase_expiry_time replaces height_end
# deployments.long_coinbase_maturity.active == true
# Before height 979919 the same deployment reported height 973440,
# height_end 979919, and maturity 6480.
Coinbase maturity in Knots 29.5: coinbases created before height 973440 use the 100-block rule. Coinbases from 973440 through 979918 need 6480 confirmations (~45 days). Coinbases created from 979919 until RDTS expires (1 September 2027, 00:00 UTC, previous block median time past) need 25920 confirmations (~180 days). Each of those rewards waits from its own height, and a reward mined before that expiry still finishes its 25920 blocks. Coinbases mined at or after expiry use the 100-block rule. Ordinary (non-coinbase) bitcoin is unchanged. Knots 29.4.2 treats coinbases from 979919 onward as mature after 100 blocks, or 6480 blocks when that node is mining. From block 980019 a 29.4.2 node may accept a block 29.5 rejects, and from block 986399 a miner still on 29.4.2 may produce one.
2. DATUM Gateway
Clone the header-v2 gateway from CONVOY:
git clone https://github.com/CONVOYMining/datum_gateway.git
cd datum_gateway
# build per README (cmake + libmicrohttpd, jansson, curl, libsodium, …)
Use a build that includes commit 56c31f4 (pow: Include header-v2 bit in BLAKE2b H1 commitment version) or later. Without that change, share proof of work will not match Knots 29.5 GetHash.
Example datum_gateway_config.json:
{
"bitcoind": {
"rpcuser": "USER",
"rpcpassword": "PASS",
"rpcurl": "http://127.0.0.1:8332"
},
"stratum": { "listen_addr": "0.0.0.0", "listen_port": 23334 },
"api": {
"listen_addr": "0.0.0.0",
"listen_port": 7152,
"admin_password": "CHANGE_ME",
"modify_conf": true
},
"mining": {
"pool_address": "bc1q…your_mainnet_address…",
"coinbase_tag_primary": "MyTag",
"allow_hasher_time_rolling": false
},
"datum": { "pool_host": "", "pooled_mining_only": false }
}
datum_gateway -c /path/to/datum_gateway_config.json
- UI:
http://HOST:7152(digest auth usesadmin_password) - Stratum:
stratum+tcp://HOST:23334
CONVOY serves header-v2 jobs when GBT advertises !blake2b. There is no pow_algorithm setting.
Solo needs pool_host empty and pooled_mining_only false. CONVOY's built-in defaults turn pooled mining on and point at a CONVOY pool host. If you empty the host and leave pooled mining on, the process exits. Their example config is a pool example; do not use it as the solo recipe. Solo can omit abw_verify_all_shares_on_disclosure.
3. Miners
CONVOY serves header-v2 jobs. If GBT does not advertise blake2b, it serves no work.
Point the miner at your stratum URL. The username can be any worker name DATUM accepts. A payout address is a common choice.
Confirm GBT advertises blake2b:
bitcoin-cli getblocktemplate '{"rules":["segwit","blake2b"]}'
# expect "!blake2b" in rules
4. Optional peer
addnode=OTHER_HOST:8333
What working looks like
getdeploymentinforeportsblake2b.height961640 andblake2b.activetrue, plusdeployments.reduced_dataat the same height and active.getdeploymentinforeportsdeployments.long_coinbase_maturityas a flag day: height 979919, maturity 25920, andcoinbase_expiry_timein place ofheight_end. Before height 979919 the same deployment reported height / enforce 973440, height_end 979919, and maturity 6480.- GBT from a client that supports blake2b shows
!blake2b. - DATUM serves header-v2 jobs (Sia-style notify: commitment
coinb1, JSON merkle[], longerntimeandnoncefields, and related fields). It waits for an anti-withholding assignment before using a template. - A header-v2 miner connects, hashes, and submits shares. Hashrate shows up in DATUM stats and the UI.
- On a real block you should see
BLOCK FOUND - <hash>, and the new tip hash should be that same hash. - Knots accepts the block via
submitblock. A second log line sayingduplicateis normal. DATUM submits twice; one path wins. - You should not see intermittent
high-hashon valid header-v2 blocks if DATUM is at56c31f4or later. Older builds hashed H1 without wire bit0x80000000, so DATUM's block hash often disagreed with Knots: about a coin-flip on easy regtest, and almost all rejects at real difficulty.
Quick health checks
- Miners stay connected and jobs refresh on new tips.
- Shares are accepted. You are not flooded with unknown-work or high-hash rejects.
- The
BLOCK FOUNDhash equals the new chain tip. - GBT from a supporting client shows
!blake2b. - After upgrading to 29.5,
getdeploymentinfoshowslong_coinbase_maturityactive at the tip with maturity 25920. - Rewards mined from block 979919 stay immature for about 25920 blocks (~180 days). Rewards from 973440 through 979918 stay immature for about 6480 blocks (~45 days).
Common mistakes
- DATUM older than
56c31f4can printBLOCK FOUNDand then intermittent or frequenthigh-hash. - Leaving CONVOY's pooled-mining defaults on, or emptying
pool_hostwhilepooled_mining_onlyis still true. - Setting
chain=testnet4or peering on 48333. Mainnet P2P is 8333. - Leaving 8333 closed on the router. The node can still make outbound peers, but inbound peers cannot reach you.
Checklist
- Knots 29.5 from the links above, using your existing mainnet data directory if you already have one.
- DATUM from CONVOY at
56c31f4or later. - Header-v2 miners on stratum port 23334.
- Confirm
long_coinbase_maturityis active at the tip. - Confirm the
BLOCK FOUNDhash matches the tip. Ignore a benign dual-submitduplicate. - Expect rewards mined from block 979919 to remain immature for ~25920 blocks (~180 days). Rewards from 973440 through 979918 remain immature for ~6480 blocks (~45 days).