Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

[EV-1263] nullHash bug temporary work around#37

Merged
Cofresi merged 7 commits into
masterfrom
bug-nullHash
Feb 12, 2019
Merged

[EV-1263] nullHash bug temporary work around#37
Cofresi merged 7 commits into
masterfrom
bug-nullHash

Conversation

@Cofresi
Copy link
Copy Markdown
Contributor

@Cofresi Cofresi commented Feb 11, 2019

Temporary fix for dashcore bug that errors when using null hash 0000000000000000000000000000000000000000000000000000000000000000 as the baseHash for the protx diff rpc command (as described in the DIP 4 specification).

Until the core bug is fixed this PR proposes to use the genesis hash in a network agnostic way instead of the null hash: If a masternode list diff is requested for the first time then we fill the baseHash with the genesis hash of the network which the requested dapi node is a member of.

This PR also addresses a concern that the valid masternode list could be overwritten with an empty list and now throws an error instead of continuing.

@Cofresi Cofresi changed the title [EV-1263] nullHash bug [EV-1263] nullHash bugfix Feb 11, 2019
@Cofresi Cofresi changed the title [EV-1263] nullHash bugfix [EV-1263] nullHash temporary fix Feb 11, 2019
@Cofresi Cofresi changed the title [EV-1263] nullHash temporary fix [EV-1263] nullHash bug temporary work around Feb 11, 2019
@codablock
Copy link
Copy Markdown

FYI, dashpay/dash#2699 finally fixes this actual issue.
Until a few minutes ago I assumed the issue was fixed long time ago... 🙈

@antouhou
Copy link
Copy Markdown
Contributor

@codablock Nice one! Thank you! I guess we still keep this one for some time for the evo image. We just need not to forgot about remove this temporary fix when the change gets merged to the evo image

Copy link
Copy Markdown
Contributor

@antouhou antouhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@Cofresi Cofresi merged commit 39e9c65 into master Feb 12, 2019
@Cofresi Cofresi deleted the bug-nullHash branch February 12, 2019 13:23
@Cofresi
Copy link
Copy Markdown
Contributor Author

Cofresi commented Feb 12, 2019

We just need not to forgot about remove this temporary fix when the change gets merged to the evo image

created a task in JIRA that reminds us of this
https://dashpay.atlassian.net/secure/RapidBoard.jspa?rapidView=25&projectKey=EV&view=planning&selectedIssue=EV-1266

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants