Skip to content

fix(core-database): check for missed blocks before applying round#3507

Merged
faustbrian merged 1 commit intoArkEcosystem:2.6from
alessiodf:fix-missed-block-detection
Feb 17, 2020
Merged

fix(core-database): check for missed blocks before applying round#3507
faustbrian merged 1 commit intoArkEcosystem:2.6from
alessiodf:fix-missed-block-detection

Conversation

@alessiodf
Copy link
Copy Markdown
Contributor

@alessiodf alessiodf commented Feb 16, 2020

Summary

Fixes #3491 by detecting missed blocks before applying the round, since applying the round will repopulate forgingDelegates with the order of the new round, but we need to check against the current (old) round to detect the correct delegate if the last delegate in a round misses its block. Otherwise it incorrectly fires for a different delegate in the new round.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@ghost
Copy link
Copy Markdown

ghost commented Feb 16, 2020

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost
Copy link
Copy Markdown

ghost commented Feb 17, 2020

A collaborator has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@faustbrian faustbrian merged commit 6d4c00a into ArkEcosystem:2.6 Feb 17, 2020
@ghost
Copy link
Copy Markdown

ghost commented Feb 17, 2020

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.

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.

2 participants