-
Notifications
You must be signed in to change notification settings - Fork 884
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
Improving backwards sync #3638
Improving backwards sync #3638
Conversation
...e/src/test-support/java/org/hyperledger/besu/ethereum/core/ImMemoryBackwardChainFactory.java
Outdated
Show resolved
Hide resolved
.../eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/ForwardSyncPhase.java
Outdated
Show resolved
Hide resolved
9d543a6
to
a593aec
Compare
66ca12a
to
f827634
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggested minor changes below.
...h/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardSyncContext.java
Show resolved
Hide resolved
...h/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardSyncContext.java
Outdated
Show resolved
Hide resolved
...h/src/main/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardSyncContext.java
Outdated
Show resolved
Hide resolved
...eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardChainTest.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/hyperledger/besu/ethereum/eth/sync/backwardsync/BackwardSyncContextTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short circuited my review while I look at resolving the conflict with #3696
besu/src/main/java/org/hyperledger/besu/controller/MergeBesuControllerBuilder.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to merge 👍
4d59b5b
to
c1794d5
Compare
besu/src/test/java/org/hyperledger/besu/controller/TransitionControllerBuilderTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the listener, thanks!
4b466e1
to
9ebaad1
Compare
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Abstracting the creation of BackwardChain into a factory Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Improving coverage Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Pivot should not be in constructor Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Reverse the internal backward chain Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Restarting after restart of backward sync improved Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Backward chain completely stored on disk Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Fixing tests Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Looking for block is now a step instead of a service Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Addressing review problems Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Removing BackwardChainFactory as this abstraction is not needed anymore Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
9ebaad1
to
c34dc82
Compare
Kudos, SonarCloud Quality Gate passed! |
Refactor Backwards sync to use a rocks db. Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Refactor Backwards sync to use a rocks db. Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Refactor Backwards sync to use a rocks db. Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Refactor Backwards sync to use a rocks db. Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Previous implementation of backward sync only saved the headers and block bodies to disk. This PR combines the structure of backward sync chain into one dequeue, together with storing the chain on the disk.