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

Revert lock order from #708. #961

Merged

Conversation

denravonska
Copy link
Member

This reverts the lock order in #708 and reduces the granularity of the locks (taken from Blackcoin). As a result, RPC, and probably the UI, will not freeze up during syncing. I tested this on the daemon by syncing from 0 without any issues.

To test:

  • Syncing from 0 in the Qt wallet
  • Additional syncs from 0 in the daemon
  • Interacting with the UI during syncing

This order is still used in blackcoin. Any order which violates this
is a new regression introduced in Gridcoin and should be changed.

The cs_main scope has also been reduced which fixes the RPC and UI
slowdowns when syncing.
@iFoggz
Copy link
Member

iFoggz commented Feb 21, 2018

This plus my future rpc changes will be improvements since scopes of locks in rpc will be reduced as well and should improve for exchanges using rpc calls.

@denravonska denravonska merged commit 0da6da2 into gridcoin-community:hotfix Feb 23, 2018
@denravonska denravonska deleted the change-process-lock-order branch February 23, 2018 04:02
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).
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