Mining Windows, with the same working flow and cleaner premium presentation.
Keep the exact sequence that already works: clean the folders, create the mining account, place the correct files, initialize the chain, add chaindata and only then start the miner.
Before you start
Use CMD as Administrator for the cleanup, init and first launch steps.
Save password.txt before creating the account. This mining account is not MetaMask.
If the binary is not named geth-inri-windows, stop and correct the files first.
Do not run init again after the first correct initialization, or you will wipe the sync data.
Step 0
Clean everything
This resets the route and recreates the clean folder structure from zero. Run these commands in Windows CMD as Administrator.
Folder preparation
Copy & pasteREM Delete old INRI folders completely rd /s /q C:\INRI REM Recreate folders for blockchain data mkdir C:\INRI mkdir C:\INRI\data
Step 1
Create a mining account
Choose a simple password such as inri123, save it as C:\\INRI\\password.txt, and then create the local mining account. This account is for the miner route and is not MetaMask.
Password file note
Copy & pasteOpen Notepad and save the password text file before creating the account.
Save this first: C:\INRI\password.txt
Create the mining account
Copy & pasteC:\INRI\geth-inri-windows account new --datadir C:\INRI\data --password C:\INRI\password.txt
Step 2
Place the correct files
Inside C:\\INRI you need the correct binary and the correct genesis file. If the binary is not named geth-inri-windows, stop and fix it before continuing.
Save as C:\\INRI\\genesis.json
Copy & paste{
"config": {
"chainId": 3777,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"ethash": {}
},
"nonce": "0x0000000000000000",
"timestamp": "0x0",
"extraData": "0x00",
"gasLimit": "0x1fffffffffffff",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"0x0cec4852f2141aeea1111583e788009a3b18e705": { "balance": "20000000000000000000000000" }
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}Initialize the local blockchain
Copy & pasteRun this command once. Never run init again after the first correct initialization or you will erase the synchronized blockchain.
C:\INRI\geth-inri-windows --datadir C:\INRI\data init C:\INRI\genesis.json
Step 3
Create the miner batch file
Save the batch below as C:\\INRI\\miner_real.bat. Change only COINBASE and THREADS before running it.
C:\\INRI\\miner_real.bat
Copy & paste@echo off chcp 65001 >nul title INRI CHAIN - PUBLIC MINER (WORKING) REM ================================================== REM CONFIGURACAO REM ================================================== set GETH=C:\INRI\geth-inri-windows.exe set DATADIR=C:\INRI\data set NETWORKID=3777 set COINBASE=0x0000000000000000000000000000000000000000 set PASSWORD=C:\INRI\password.txt REM ================================================== REM REDE REM ================================================== set P2P_PORT=30303 set MAXPEERS=100 set CACHE=1024 set THREADS=4 REM ================================================== REM BOOTNODES REM ================================================== set BOOTNODES=enode://453d847d192861e020ae9bd44734c6d985f07786af3f2543c1a4a4578405c5232215852d02cab335f86376bfed4fb4fe8065f122cf36f41e5c7c805a04d7dc2b@134.199.203.8:30303,enode://5480948164d342bd728bf8a26fae74e8282c5f3fb905b03e25ab708866ea38cb0ec7015211623f0bc6f83aa7afa2dd7ae6789fdda788c5234564a794a938e15f@170.64.222.34:30303 REM ================================================== REM VERIFICACOES REM ================================================== if not exist "%GETH%" ( echo ERRO: Geth nao encontrado. pause exit /b ) if not exist "%DATADIR%" mkdir "%DATADIR%" REM ================================================== REM FIREWALL REM ================================================== net session >nul 2>&1 if %errorlevel%==0 ( netsh advfirewall firewall add rule name="INRI TCP 30303" dir=in action=allow protocol=TCP localport=30303 >nul 2>&1 netsh advfirewall firewall add rule name="INRI UDP 30303" dir=in action=allow protocol=UDP localport=30303 >nul 2>&1 ) REM ================================================== REM START MINER REM ================================================== echo ============================================ echo INRI CHAIN - PUBLIC MINER echo ============================================ echo Network : %NETWORKID% echo MaxPeers : %MAXPEERS% echo Threads : %THREADS% echo ============================================ echo. "%GETH%" ^ --datadir "%DATADIR%" ^ --networkid %NETWORKID% ^ --port %P2P_PORT% ^ --bootnodes "%BOOTNODES%" ^ --syncmode full ^ --snapshot=false ^ --maxpeers %MAXPEERS% ^ --cache %CACHE% ^ --mine ^ --miner.threads %THREADS% ^ --miner.etherbase "%COINBASE%" ^ --unlock "%COINBASE%" ^ --password "%PASSWORD%" ^ --verbosity 3 echo. echo ============================================ echo GETH PAROU echo ============================================ pause
Step 4
Add chaindata
Before the first launch, download the chaindata package, extract the RAR file and copy the chaindata folder into your INRI data route. Then start the miner batch.
Chaindata route
Fast Sync (Recommended). Download the current chaindata package, extract the RAR, then copy the folder chaindata into C:\\INRI\\data before the first run.
Step 5
Start mining
Right-click the batch and run it as Administrator. Then verify that you are really mining on the original network and keep the final C:\\INRI folder structure intact.
Start checklist
- Right-click the batch file and run as Administrator.
- Check the wallet address saved in wallet.txt and the COINBASE value in the batch.
- Watch peers, sync progress and mining output before leaving the machine unattended.
Final C:\\INRI structure
Copy & pasteC:\INRI\ ├─ data\ ├─ genesis.json ├─ geth-inri-windows.exe ├─ miner_real.bat ├─ password.txt └─ wallet.txt
Use the pool page after setup to monitor miners, payments and blocks.
Prepare or review the payout wallet before mining.
Open the Ubuntu page for the full single-command Linux route.
Verify addresses and network blocks on-chain.