-
-
Notifications
You must be signed in to change notification settings - Fork 479
feat: implement should_apply_proposer_boost for gloas #9233
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
Changes from all commits
9bc6eb6
2d7f37c
57594ee
8aafc5e
09174a2
d2bb968
e9d11c0
28e0fbc
6b87bda
90677ef
545a190
148a1c5
cc95ae3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import {DataAvailabilityStatus} from "@lodestar/state-transition"; | ||
| import {Epoch, RootHex, Slot, UintNum64} from "@lodestar/types"; | ||
| import {Epoch, RootHex, Slot, UintNum64, ValidatorIndex} from "@lodestar/types"; | ||
|
|
||
| // RootHex is a root as a hex string | ||
| // Used for lightweight and easy comparison | ||
|
|
@@ -144,6 +144,13 @@ export type ProtoBlock = BlockExtraMeta & { | |
| // Indicate whether block arrives in a timely manner ie. before the 4 second mark | ||
| timeliness: boolean; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we may want to use a single
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a real benefit to this? Using bits impact readability, and we are only saving one boolean field per |
||
|
|
||
| // Indicate whether block arrives before the PTC deadline | ||
| // Spec: gloas/fork-choice.md#modified-record_block_timeliness (block_timeliness[PTC_TIMELINESS_INDEX]) | ||
| ptcTimeliness: boolean; | ||
|
|
||
| // The index of the block proposer. Used by should_apply_proposer_boost to detect proposer equivocations | ||
| proposerIndex: ValidatorIndex; | ||
|
|
||
| /** Payload status for this node (Gloas fork). Always FULL in pre-gloas */ | ||
| payloadStatus: PayloadStatus; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.