Bendr0id / xmrigCC

RandomX, CryptoNight, Argon2 and GhostRider CPU/GPU miner with Command&Control (CC) Server and Monitoring
GNU General Public License v3.0
312 stars 112 forks source link

[Proposal] Use fingerprint instead of 'worker-id' #352

Open electroape opened 3 years ago

electroape commented 3 years ago

Use a fingerprint for server-client communication instead of 'worker-id', the latter will be used only as a display name in dashboard. Fingerprint is a randomly generated string (say, 16 byte alphanumeric). After startup, the daemon looks up the 'worker-fingerprint' option in the config and if it's not present, generates and writes out a new one. Storing the fingerprint in the config allows for dashboard client statistics data continuity. Don't forget about keeping the fingerprint option intact while applying templates.

Advantages :

Wanted to do this myself at first but can't figure out how to do a config write-out yet.