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: fix pending compact retain #3116

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

driftluo
Copy link
Collaborator

What problem does this PR solve?

Issue introduced in #3110

Block number cannot be used as the judgment condition here, but epoch number should be used because any block of the current epoch can be accepted as uncle, and the practice of using block number as the judgment condition will not be able to broadcast and accept some uncle records, resulting in an abnormal uncle rate

Check List

Tests

  • Unit test

Release note

None: Exclude this PR from the release note.

@driftluo driftluo requested a review from a team as a code owner October 19, 2021 16:56
@driftluo driftluo force-pushed the fix-pending-compact-retain branch from b1f9659 to ee95976 Compare October 19, 2021 17:03
@driftluo driftluo force-pushed the fix-pending-compact-retain branch from ee95976 to 965b06f Compare October 20, 2021 00:24
@doitian
Copy link
Member

doitian commented Oct 20, 2021

bors r=doitian,yangby-cryptape

@bors bors bot merged commit 9028e70 into nervosnetwork:develop Oct 20, 2021
@driftluo driftluo deleted the fix-pending-compact-retain branch October 20, 2021 02:03
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.

3 participants