-
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
Tidying up Godoc for Core Package #2762
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// Package blocks contains block processing libraries. These libraries | ||
// process and verify block specific messages such as PoW receipt root, | ||
// RANDAO, validator deposits, exits and slashing proofs. | ||
package blocks | ||
|
||
import ( | ||
|
@@ -19,12 +16,6 @@ import ( | |
var log = logrus.WithField("prefix", "core/blocks") | ||
|
||
// IsValidBlock ensures that the block is compliant with the block processing validity conditions. | ||
// Spec: | ||
// For a beacon chain block, block, to be processed by a node, the following conditions must be met: | ||
// The parent block with root block.parent_root has been processed and accepted. | ||
// The node has processed its state up to slot, block.slot - 1. | ||
// The Ethereum 1.0 block pointed to by the state.processed_pow_receipt_root has been processed and accepted. | ||
// The node's local clock time is greater than or equal to state.genesis_time + block.slot * SECONDS_PER_SLOT. | ||
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. Why delete all of this? 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. These comments are old, the variable names are outdated and it's no longer specified in the spec. They are moved under |
||
func IsValidBlock( | ||
ctx context.Context, | ||
state *pb.BeaconState, | ||
|
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 delete these methods?
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.
It's no longer used, the new method is here:
https://github.com/prysmaticlabs/prysm/blob/spec-v0.6/beacon-chain/core/helpers/block.go#L42