-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Device Label (#1) #395
Conversation
Failures look like random timeouts on 2 of the suites. |
Extra data is not intended to be the device name when solo mining, so it shouldn't magically get this meaning when mining for a pool. I'd prefer to just make it a separate setting in the config. |
This thing should also be signed somehow, else everyone that knows your address and device id (both may become public through the block extra data) can rename your devices. |
Codecov Report
@@ Coverage Diff @@
## master #395 +/- ##
==========================================
- Coverage 71.49% 71.45% -0.05%
==========================================
Files 188 188
Lines 11710 11711 +1
==========================================
- Hits 8372 8368 -4
- Misses 3338 3343 +5
Continue to review full report at Codecov.
|
@mar-v-in Originally, I had this as As for signing: couldn't a malicious actor that knows both your deviceId and address already get you repeatedly banned from the pool agent by connecting at the same time as you and submitting duplicate shares? That would seem more serious than renaming the device. |
The reference pool implementation does banning by ip address, not device id. |
Interesting -- I've been banned when connecting to a pool server with images behind different IPs, but that shared a |
See #401 |
Pull request checklist
What's in this pull request?
Uses
--extra-data
flag orextraData
config option to setdeviceLabel
in the case of connecting to a mining pool (where before it was discarded until reverting to solo mining).See:
nimiq/mining-pool#12
nimiq-network/developer-reference#23