mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
83a83279d4
* Remove synced tips use last valid hash in removing invalid nodes. * add test * Remove unused code * More unused parameters * Fix proposer boost * terence's review #1 * Fix conflicts * terence's review 2 * rename argument * terence's review #3 * rename optimistic -> status * Minor clean up * revert loop variable change * do not mark lvh as valid Co-authored-by: terence tsao <terence@prysmaticlabs.com>
46 lines
865 B
Go
46 lines
865 B
Go
package protoarray
|
|
|
|
import (
|
|
types "github.com/prysmaticlabs/eth2-types"
|
|
)
|
|
|
|
// 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
|
|
}
|