mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
84916672c6
* replace eth2 types * replace protos * regen proto * replace * gaz * deps * amend * regen proto * mod * gaz * gaz * ensure build * ssz * add dep * no more eth2 types * no more eth2 * remg * all builds * buidl * tidy * clean * fmt * val serv * gaz Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
46 lines
887 B
Go
46 lines
887 B
Go
package protoarray
|
|
|
|
import (
|
|
types "github.com/prysmaticlabs/prysm/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
|
|
}
|