mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
d077483577
* v3 import renamings * tidy * fmt * rev * Update beacon-chain/core/epoch/precompute/reward_penalty_test.go * Update beacon-chain/core/helpers/validators_test.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/iface/BUILD.bazel * Update beacon-chain/db/kv/kv.go * Update beacon-chain/db/kv/state.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/sync/initial-sync/service.go * fix deps * fix bad replacements * fix bad replacements * change back * gohashtree version * fix deps Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
46 lines
890 B
Go
46 lines
890 B
Go
package protoarray
|
|
|
|
import (
|
|
types "github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
|
)
|
|
|
|
// Slot of the fork choice node.
|
|
func (n *Node) Slot() types.Slot {
|
|
return n.slot
|
|
}
|
|
|
|
// Root of the fork choice node.
|
|
func (n *Node) Root() [32]byte {
|
|
return n.root
|
|
}
|
|
|
|
// Parent of the fork choice node.
|
|
func (n *Node) Parent() uint64 {
|
|
return n.parent
|
|
}
|
|
|
|
// JustifiedEpoch of the fork choice node.
|
|
func (n *Node) JustifiedEpoch() types.Epoch {
|
|
return n.justifiedEpoch
|
|
}
|
|
|
|
// FinalizedEpoch of the fork choice node.
|
|
func (n *Node) FinalizedEpoch() types.Epoch {
|
|
return n.finalizedEpoch
|
|
}
|
|
|
|
// Weight of the fork choice node.
|
|
func (n *Node) Weight() uint64 {
|
|
return n.weight
|
|
}
|
|
|
|
// BestChild of the fork choice node.
|
|
func (n *Node) BestChild() uint64 {
|
|
return n.bestChild
|
|
}
|
|
|
|
// BestDescendant of the fork choice node.
|
|
func (n *Node) BestDescendant() uint64 {
|
|
return n.bestDescendant
|
|
}
|