Add `./build.sh --macos-release`, producing a portable host-arch macOS
binary (Intel x86_64 or Apple Silicon arm64). libuv, hwloc, and OpenSSL
are linked statically from Homebrew so the result runs on stock macOS
without Homebrew at runtime.
Homebrew's static libhwloc.a is built with the libxml2 and OpenCL
topology plugins, so the link adds `-lxml2 -framework OpenCL` (both
ship with macOS). Brew prefixes are resolved via `brew --prefix`, so
the same target works on Intel (/usr/local) and Apple Silicon
(/opt/homebrew); the package is named by `uname -m`.
Also document the macOS build in README and ignore build-macos/.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Port miner113's RX_DRAGONX mining model into the RX_HUSH path so DragonX
mining is identical in solo and pool mode:
- CpuWorker: filter EVERY hash on SHA256D(header + RandomX solution) (the
block-bearing pow-hash) instead of the RandomX hash; submit the full
32-byte nonce + rx_hash. Removes the fragile pool-mode dual-check that
was dropping ~half of block candidates.
- Job: 32-byte nonce for RX_HUSH in pool mode too (was solo-only).
- JobResult: populate nonceBytes() on the standard 4-byte path.
- Client: submit a variable-width nonce (32-byte for DragonX) with a
dynamically laid-out temp buffer.
Effect: shares and blocks use one metric, so the pool receives every block
candidate (no under-submission gap) and the hashrate is block-relevant.
Rebrand to drg-xmrig (version.h, build.sh, package.json, README) + add
PROTOCOL.md wire spec.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>