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

Improve the dpor signature verification. (2nd) #979

Merged
merged 7 commits into from
Feb 28, 2018

Conversation

tomasbrod
Copy link
Member

Record key of beacon even if it would be denied, but to diffrent variable.
Then verify that either of these keys is in boincHash. Verify the dpor
signatore against any of these keys. Accept only if any of the keys matches
and any of the signatures is valid.

Optimized alternative beacon store and relax check

fine

Record key of beacon even if it would be denied, but to diffrent variable.
Then verify that either of these keys is in boincHash. Verify the dpor
signatore against any of these keys. Accept only if any of the keys matches
and any of the signatures is valid.

Optimized alternative beacon store and relax check

fine
@@ -8421,35 +8434,6 @@ bool MemorizeMessage(const CTransaction &tx, double dAmount, std::string sRecipi
sMessageValue="";
}

if (sMessageType=="beacon" && sMessageAction=="A")
Copy link
Member

Choose a reason for hiding this comment

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

Is the removal of this not an issue now that we verify the beacon when accepting the blocks?

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not think so. By removing this just memorizes every beacon. V9 beacon transaction rules do prevent new invalid beacons.

@denravonska denravonska merged commit 3754746 into gridcoin-community:hotfix Feb 28, 2018
denravonska added a commit that referenced this pull request Mar 1, 2018
Fixed:
 - Move context sensitive DPoR block checks to ConnectBlock, #912 (@tomasbrod).
 - Check incoming blocks for malformed DPoR signature, #912.
 - Corect tally height on init, #917 (@denravonska).
 - Prevent staking of a block with a failed signature, #948 (@Foggyx420).
 - Fix UI and RPC slowdown regression, #961 (@denravonska).
 - Fix Debian lint errors, #886, #885, #884, #883 (@caraka).
 - Fix fork issue due to research age calculation inconsistencies, #939
   (@denravonska).
 - Fix crashes when tallying, #934 (@denravonska).
 - Revert reorganize of the chain trust becomes less than what it was, #957
   (@tomasbrod).
 - Fix sync issues with incorrectly accepted v8 beacons, #979 (@tomasbrod).

Changed:
  - Double check PoS kernel, #958 (@tomasbrod).
  - Don't tally until V9 to speed up syncing, #943 (@denravonska).
  - Double check proof of stake kernel, #958 (@tomasbrod).
@tomasbrod tomasbrod deleted the sigcheckstupid branch November 30, 2018 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants