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

Delegate all the block checks and validation to the block import phase #4098

Merged
merged 2 commits into from
Jul 14, 2022

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Jul 13, 2022

Signed-off-by: Fabio Di Fabio fabio.difabio@consensys.net

PR description

Remove preventive checks during sync, since they will be performed always performed during the import phase later, where the block will be also flagged as bad block.
With this the last failing Hive test (Invalid Ancestor Chain Re-Org, Invalid Number, Invalid P9', Reveal using sync) passes.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@fab-10 fab-10 added the mainnet label Jul 13, 2022
@fab-10 fab-10 force-pushed the invalid-number-block-from-sync branch from 11d9ad9 to a0ef3f1 Compare July 13, 2022 17:36
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 force-pushed the invalid-number-block-from-sync branch from a0ef3f1 to b53ef72 Compare July 13, 2022 17:41
@fab-10 fab-10 marked this pull request as ready for review July 13, 2022 18:03
Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

👍 as discussed on s&t

# Conflicts:
#	CHANGELOG.md
#	ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardChain.java
#	ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/InMemoryBackwardChainTest.java
@fab-10 fab-10 merged commit 823e6c8 into hyperledger:main Jul 14, 2022
@fab-10 fab-10 deleted the invalid-number-block-from-sync branch July 14, 2022 08:32
codyborn pushed a commit to codyborn/besu that referenced this pull request Jul 31, 2022
hyperledger#4098)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
codyborn pushed a commit to codyborn/besu that referenced this pull request Jul 31, 2022
hyperledger#4098)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Cody Born <codyborn@outlook.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
hyperledger#4098)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants