Gloas serve post block state for finalized/justified state requests#9092
Conversation
pawanjay176
left a comment
There was a problem hiding this comment.
Just a nit and some additional documentation suggestions.
I also think we should add http api tests that verifies we get the right state pre and post gloas. We could do that once we sort out the remaining db/fork choice stuff and make an issue for it now. What do you think?
michaelsproul
left a comment
There was a problem hiding this comment.
This is good, and I think helps with some of my DB stuff.
Agree with Pawan that we should open an issue to test this more thoroughly. A lot of these state-related paths are going to need hammering with tests.
Merge Queue Status
This pull request spent 2 minutes 16 seconds in the queue, with no time running CI. Required conditions to merge
ReasonPull request #9092 has been dequeued The pull request rule doesn't match anymore. The following conditions don't match anymore:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. |
|
@mergify dequeue |
…ub.com/eserilev/lighthouse into gloas-serve-finalized-post-block-state
|
|
||
| if chain | ||
| .spec | ||
| .fork_name_at_slot::<T::EthSpec>(slot) |
There was a problem hiding this comment.
Should maybe be block.slot to account for the case where a pre-Gloas state is finalized at the Gloas fork boundary epoch?
There was a problem hiding this comment.
I think this is correct. the fork boundary block would be pre-gloas so there would be no envelope. so the more correct state to return there should be advanced to the epoch boundary like we do pre-gloas
There was a problem hiding this comment.
Used block.slot for both finalized and justified in 51e08d0
michaelsproul
left a comment
There was a problem hiding this comment.
Looks good now. Just one nit, but I think this is fine
pawanjay176
left a comment
There was a problem hiding this comment.
LGTM. applied michael's suggestion and also changed the regular comment to a doc comment so its easier to check with rust-analyzer. Gonna merge when CI passes
Merge Queue Status
This pull request spent 29 minutes 43 seconds in the queue, including 28 minutes 10 seconds running CI. Required conditions to merge
|
Finalized/justified states for gloas are always the post block state. This PR allows us to serve checkpoint sync data for Gloas