-
Notifications
You must be signed in to change notification settings - Fork 38
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
Deneb cleanup #22
Merged
Merged
Deneb cleanup #22
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
55f6b8c
move low level proofs to separate folder
gpsanant b1c184b
make caching less specific
gpsanant 92eecac
generation separated
gpsanant 172b97e
get proofs compiling
gpsanant 9498897
delete unused files
gpsanant ec85721
rm slot?
gpsanant 012d80c
fix pkg name
mpjunior92 47a489a
group const
mpjunior92 1ae8fd9
remove duplicated constants file
mpjunior92 7d8a141
import constants from beacon pkg
mpjunior92 856ab6a
remove go mod from data folder
mpjunior92 6b01966
add missing slot
mpjunior92 3f98ddc
be explicit about beacon state hardfork type
mpjunior92 f642bc7
source state from header
gpsanant 343de71
fix cache
gpsanant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package beacon | ||
|
||
const ( | ||
SlotsPerHistoricalRoot = uint64(8192) | ||
|
||
// Index of the historical summaries in the beacon state | ||
HistoricalSummaryListIndex = uint64(27) | ||
|
||
// Index of validator list in beacon state | ||
ValidatorListIndex = uint64(11) | ||
balanceListIndex = uint64(12) | ||
|
||
// Index of the beacon body root inside the beacon body header | ||
BeaconBlockBodyRootIndex = uint64(4) | ||
|
||
// Index of the execution payload in the BeaconBlockBody container | ||
ExecutionPayloadIndex = uint64(9) | ||
|
||
// Index of the timestamp inside the execution payload | ||
TimestampIndex = uint64(9) | ||
|
||
// Index of the withdrawals inside the execution payload | ||
WithdrawalsIndex = uint64(14) | ||
|
||
// Index of the slot in the beacon block header | ||
SlotIndex = uint64(0) | ||
stateRootIndex = uint64(3) | ||
|
||
// in the historical summary coontainer, the block root summary is at index 0 | ||
BlockSummaryRootIndex = uint64(0) | ||
) | ||
|
||
// | ||
// | ||
// **************Number of Layers in Various Subtrees************** | ||
// | ||
// | ||
|
||
const ( | ||
// Number of layers for various merkle subtrees | ||
blockHeaderMerkleSubtreeNumLayers = uint64(3) | ||
|
||
BlockBodyMerkleSubtreeNumLayers = uint64(4) | ||
|
||
// TODO unused; remove | ||
// Number of layers for the merkelization of the Execution Payload | ||
executionPayloadMerkleSubtreeNumLayersDeneb = uint64(5) | ||
|
||
executionPayloadMerkleSubtreeNumLayersCapella = uint64(4) | ||
|
||
// Number of layers for the merkleixation of the Validator List in the Beacon State | ||
ValidatorListMerkleSubtreeNumLayers = uint64(40) | ||
|
||
// Number of layers for the merkleixation of the Historical Summary List in the Beacon State | ||
HistoricalSummaryListMerkleSubtreeNumLayers = uint64(24) | ||
|
||
// Number of layers for the merkleization of the Withdrawal List in the Exection Payload | ||
WithdrawalListMerkleSubtreeNumLayers = uint64(4) | ||
|
||
// Number of layers for the merkleization of the Beacon State | ||
beaconStateMerkleSubtreeNumLayers = uint64(5) | ||
|
||
// Number of layers for the merkleization of the Block Roots in the Beacon State | ||
BlockRootsMerkleSubtreeNumLayers = uint64(13) | ||
|
||
// **************Number of fields of various containers************** | ||
beaconBlockHeaderNumFields = uint64(5) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why is capella in deneb.go?