@echo off
REM ──────────────────────────────────────────────────────────────────
REM  VELD DESKTOP MINING + VALIDATOR CLIENT
REM
REM  One binary (veld-node.exe) runs both the full node and the mining
REM  + endorsement loop. On first launch you'll be asked how to set up
REM  your miner's reward address:
REM
REM    [1] Resume previous session
REM    [2] Log in from a keyfile (.veld-keys)
REM    [3] Log in with a different VELD wallet (paste private key)
REM    [4] Create a brand-new wallet
REM
REM  This is NOT a wallet. To send, receive, or stake VELD, use
REM  the web wallet at https://wallet.veld.network
REM ──────────────────────────────────────────────────────────────────
setlocal
cd /d "%~dp0"
title Veld Desktop Mining Client

echo.
echo ============================================================
echo   VELD DESKTOP MINING + VALIDATOR CLIENT
echo   Where value is earned.
echo ============================================================
echo.

if not exist "veld-data" mkdir veld-data

REM Clean up any previous hung process
taskkill /F /IM veld-node.exe /T >nul 2>&1
timeout /t 1 /nobreak >nul

"%~dp0bin\veld-node.exe" --mine --datadir "%~dp0veld-data" --connect node2.veld.network:8333 --connect node3.veld.network:8333

echo.
echo Mining stopped.
pause
endlocal
