proto-cuda/windows-node/: START-NODE.bat and start-node.ps1 (igneumd --devnet with --addpeer to the Mac, status line every 30 s through igneum-miner watch, keep-awake, random-delay restart, Ctrl+C), BUILD-NODE.bat and build-node.ps1 (builds on the PC from the src.zip snapshot; winget for Rustup, LLVM and protoc; MSVC default toolset), ALLOW-FIREWALL.bat and allow-firewall.ps1, README.txt, cross-build.sh (the mingw-w64 recipe that built igneumd.exe in 8 min 25 s; the exe ships with the three mingw runtime DLLs) and make-package.sh. WINDOWS-MINER.md gains "Run your own node"; bench-log records the cross-compile and the two-peer sync test on the Mac (ports 27000 and 27010, live node untouched). The mining launcher's NODE_HOST=auto edit stays uncommitted for the agent that owns start-mining.ps1. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
45 lines
2.1 KiB
Batchfile
45 lines
2.1 KiB
Batchfile
@echo off
|
|
rem Igneum devnet node for Windows. Double-click this file.
|
|
rem Runs igneumd.exe (the Igneum node) on this PC: the miners mine against it on localhost and it peers with the Mac
|
|
rem node. The window shows one status line every 30 seconds; the node's own output goes to node-<stamp>.log next to
|
|
rem this file. Stop with Ctrl+C; the window stays open at the end.
|
|
|
|
rem ---- settings: edit these lines only ----------------------------------------------------------
|
|
rem The Mac node (its p2p port). This node dials it at start and keeps retrying; the Mac can dial back as well.
|
|
set "MAC_NODE=192.168.68.64:26611"
|
|
rem gRPC for the miners on this PC (START-MINING.bat with NODE_HOST=auto looks here first).
|
|
set "RPC_LISTEN=127.0.0.1:26610"
|
|
rem p2p on all interfaces, so the Mac node can connect in. Windows Firewall asks once: tick Private networks, Allow access.
|
|
set "P2P_LISTEN=0.0.0.0:26611"
|
|
rem Where the chain database lives.
|
|
set "APPDIR=%LOCALAPPDATA%\igneum\devnet"
|
|
rem 1 = hand out block templates before this node is synced (the Mac node runs like this because it mines alone).
|
|
rem 0 = the miners wait until this node has caught up with the Mac.
|
|
set "UNSYNCED_MINING=0"
|
|
rem Seconds between status lines.
|
|
set "STATUS_SECS=30"
|
|
rem Anything else to pass to igneumd (for example --loglevel=debug).
|
|
set "EXTRA_ARGS="
|
|
rem -------------------------------------------------------------------------------------------------
|
|
|
|
cd /d "%~dp0"
|
|
if not exist "%~dp0start-node.ps1" (
|
|
echo Please extract the whole zip first ^(right-click, Extract All^), then run START-NODE.bat from the extracted folder.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
if not exist "%~dp0igneumd.exe" (
|
|
echo igneumd.exe is not in this folder yet. Run BUILD-NODE.bat first ^(it builds the node from the source in src.zip^).
|
|
pause
|
|
exit /b 1
|
|
)
|
|
where powershell >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo PowerShell was not found. Windows 10 and 11 ship it; nothing else can be done here.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0start-node.ps1"
|
|
echo.
|
|
echo The node has stopped. The logs are next to this file.
|
|
pause
|