-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make State Requests only Request for Finalized State #1955
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1955 +/- ##
========================================
- Coverage 71.99% 71.6% -0.4%
========================================
Files 109 108 -1
Lines 8353 8099 -254
========================================
- Hits 6014 5799 -215
+ Misses 1773 1759 -14
+ Partials 566 541 -25 |
beacon-chain/blockchain/service.go
Outdated
} | ||
|
||
// Forward processed block to operation pool to remove individual operation from DB. | ||
c.opsPoolService.IncomingProcessedBlockFeed().Send(block) |
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.
Please log an error if this returns 0, it means you sent a message to no one
beacon-chain/blockchain/service.go
Outdated
@@ -426,6 +438,14 @@ func (c *ChainService) isBlockReadyForProcessing(block *pb.BeaconBlock, beaconSt | |||
return nil | |||
} | |||
|
|||
func (c *ChainService) checkLastFinalizedEpoch(beaconState *pb.BeaconState) error { |
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.
Can you add a better method name? This doesn’t describe the behavior of the method
Description
Write why you are making the changes in this pull request.
Our sync were requesting the current state when we should have been requesting the
last finalized state.
Write a summary of the changes you are making.
validator's indexes if the epoch transition happened when a non nil block was given.
current state root..