build.sh bundles whatever daemon binary already sits in prebuilt-binaries/, and setup.sh only rebuilds a platform's daemon when its flag (--win/--mac) is passed — so a daemon left over from an older source revision silently shipped in the wallet (the Network tab showed dragonxd v1.0.1 while the source was v1.0.2). Add a stale-daemon guard: compare the vX.Y.Z baked into each prebuilt daemon against CLIENT_VERSION_* in the checked-out dragonx source. On the present/skip and --check paths it now prints either "matches dragonx source" or a STALE warning naming both versions and the rebuild command, plus a summary reminder at the end of the daemon section. Version is read with grep -a (no binutils/strings dependency); no-ops cleanly when the source or a binary is absent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 KiB
Executable File
32 KiB
Executable File