Add a flag to start processing statediff if we are caught up to the head of the chain #205
No reviewers
Labels
No Label
bug
critical
duplicate
enhancement
epic
help wanted
in progress
invalid
low priority
question
rebase
v1
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/go-ethereum#205
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/155-waitForSync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
This PR will allow users to add a flag when starting geth, indicating if we should wait for the statediff service to catch up to the head of the chain.
Data Structure Changes
This feature changes two major data structures used in the statediffing service.
statediff/config.go
-Config
a.
WaitforSync
- This change allows us to indicate if the statediff service should wait for us to catch up to head.statediff/service.go
-Service
a.
WaitforSync
- This change allows us to indicate if the statediff service should wait for us to catch up to head.b.
Backend
- This backend object is necessary to query the internal API, which indicates if we have caught up to the head of the chain.These changes have not failed any of the current unit tests under
/statediff.
Testing
This PR includes two unit tests. These unit tests have a new mock called
Backend.
The tests make sure that we catch up to head properly before indicating that we are all caught up.We should test this with production data to ensure the feature is working correctly and does not incur any performance issues.
Looks great! Just a few comments for some very minor non-functional changes.
LGTM! Thanks for making the updates.