Flag that only switches statediffing on once the node has synced to head #155
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#155
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
CLI flag that configures the node such that it switches on the statediffing service only after the node has caught up to the head of the chain.
@i-norden - I am making the following assumptions, please correct me if they are wrong:
I will take the following approach:
Once I understand both components, I will add the flag. I will take extra time to "play" around with the above two components since they seem to appear in other tickets.
I have a general understanding of how the state-diff service is started in geth.
init():cmd/geth/main.go ->
geth():cmd/geth/main.go →
makeFullNode():cmd/geth/config.go →
RegisterStateDiffService(): cmd/utils/flags.go →
New():statediff/service.go ->
RegisterLifecycle():node/node.go
The question I need to answer is:
lifecycle
object until geth has caught up to head?Loop():statediff/service.go
method.Start():statediff/service.go
. We don't actually call theLoop
function until we have caught up to get. This might be the least intrusive and cleanest way.The following two discoveries will help me decide the best way to approach:
makeFullNode()
need to run before geth can catch up to head?RegisterStateDiffService()
from this function call, and register it elsewhere.What I have accomplished:
Working on next: