Skip to content
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

Fix masternode signatures, bump PROTOCOL_VERSION #836

Merged
merged 1 commit into from
May 31, 2016
Merged

Fix masternode signatures, bump PROTOCOL_VERSION #836

merged 1 commit into from
May 31, 2016

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented May 30, 2016

strMessage for masternode broadcast (which we sign and verify) looks like this currently:

[2001:1608:45:3::242:ac11:6]:199991464464536
                                  ?~}&?Q?S?Ǚ?q ?0??????O?I/Y?(
?f?jJF??m??bssknN??9鲜JXVs?ә?5T?8??????~70200

which I believe in some cases leads to "Got bad Masternode ping signature" errors and banning.

I propose to change the way strMessage is composed so that it looks like this:
[2002:82ff:c04:2:a90f:2261:43c4:2745]:1999514645552319591ec70225aacadfafa4ab5d21e87cdce641fd4030d029485434533c5e481578a9d471089fb5ec170200

Further more nDos for old masternodes is set to 0 to stop false positives (message still gets rejected though).

strMessage for masternode broadcast (which we sign and verify) looks like this currently:
[2001:1608:45:3::242:ac11:6]:199991464464536
                                  ?~}&?Q?S?Ǚ?q	?0??????O?I/Y?(
?f?jJF??m??bssknN??9鲜JXVs?ә?5T?8??????~70200
which I believe in some cases leads to "Got bad Masternode ping signature" errors and banning.

I propose to change the way strMessage is composed so that it looks like this:
[2002:82ff:c04:2:a90f:2261:43c4:2745]:1999514645552319591ec70225aacadfafa4ab5d21e87cdce641fd4030d029485434533c5e481578a9d471089fb5ec170200

Further more nDos for old masternodes is set to 0 to stop false positives (message still gets rejected though).
@schinzelh
Copy link

Funny enough [2001:1608:45:3::242:ac11:6] is mine :)

ACK d705da7

@UdjinM6 UdjinM6 added the bug label May 30, 2016
@UdjinM6
Copy link
Author

UdjinM6 commented May 30, 2016

heh, and node that passed me that message and was banned for doing so is mine, so I was pretty sure it's a legit one 😉

@eduffield222
Copy link

I've seen this bug and had no luck track it down. What is the mechanism for the bug using the signature? Is it some crazy encoding issue then?

@eduffield222 eduffield222 merged commit 2d429a7 into dashpay:v0.12.1.x May 31, 2016
@UdjinM6
Copy link
Author

UdjinM6 commented May 31, 2016

@evan82 yep, I guess so. Pushing raw data to string is not very intuitive and can give different results on different OSes I guess. My guess was that using string-yfied hash160 of pubkey serialization should give deterministic result regardless of OS type or version. Hopefully I was right :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants