Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix syncing logic for reverting - Closes #4103 #4104

Merged
merged 8 commits into from
Aug 16, 2019

Conversation

shuse2
Copy link
Collaborator

@shuse2 shuse2 commented Aug 16, 2019

What was the problem?

When the chain is on fork, it doesn't rollback if it fails to fetch block from network, instead it rolls back when it fails to process

How did I solve it?

Move the logic to the network fail.

How to manually test it?

Build some blockchain data (around height 100), and connect to different network.

Review checklist

framework/src/modules/chain/loader.js Outdated Show resolved Hide resolved
Copy link
Contributor

@ManuGowda ManuGowda left a comment

Choose a reason for hiding this comment

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

@shuse2 PR LGTM, but I don't see any tests. can you please add test? if you want to add test as separate PR, please consider my review as approved.

@shuse2 shuse2 merged commit 93103b9 into release/2.3.0 Aug 16, 2019
@shuse2 shuse2 deleted the 4103-fix_syncing_logic branch August 16, 2019 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants