Fix Windows shutdown hang and register console ctrl handler

- Remove GenerateBitcoins(false) from stop RPC handler because it calls
  minerThreads->join_all() which blocks the RPC thread, preventing the
  response from being sent back to the client. Miners are already stopped
  in Shutdown() so this was redundant.
- Add ShutdownRequested() checks in miner peer-wait and nonce loops
- Register SetConsoleCtrlHandler on Windows for clean Ctrl+C/close
- Add check_and_clean_target for --linux-release builds
This commit is contained in:
dan_s
2026-02-23 12:11:55 -06:00
parent 70d97d887b
commit e4e22abf4c
4 changed files with 14 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ fi
# Check for --linux-release flag (builds inside Ubuntu 20.04 container for max compatibility)
if [[ "${1:-}" == "--linux-release" ]]; then
check_and_clean_target "linux-docker"
shift
echo "Building Linux release inside Ubuntu 20.04 Docker container..."
sudo docker build -t hush-builder -f Dockerfile.build .