Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewHotEntry ¶
func GenerateNewHotEntry(stateView *beacon.BeaconStateView, spec *beacon.Spec) (*chain.HotEntry, error)
Create a new HotEntry for the Chain
func NodeStatusFromBeaconState ¶
func NodeStatusFromBeaconState(bstate *beacon.BeaconState, forkDigest beacon.ForkDigest) (*beacon.Status, error)
Function that will generate a beacon.Status{} from the given BeaconBlock and BeaconStatus
Types ¶
type GossipImportCmd ¶
type GossipImportCmd struct { *base.Base GossipMetrics *metrics.GossipMetrics VisualizerState *visualizer.VisualizerState *pstatus.PeerStatusState BlocksDB bdb.DBs BlockDBState *blocks.DBState StatesDB sdb.DBs StateDBState *states.DBState chain.Chains *cchain.ChainState BName bdb.DBID `ask:"<bname>" help:"Name of the network that will be used for the Blocks and State DBs"` SName sdb.DBID `ask:"<sname>" help:"Name of the network that will be used for the Blocks and State DBs"` CName chain.ChainID `ask:"<cname>" help:"Name of the network that will be used for the Chain that the Rumor Node will follow"` ForkDigest beacon.ForkDigest `ask:"--fork-digest" help:"Fork digest of the given network"` ProjectPath string `ask:"--project-path" help:"Path to the folder where the BD will be created"` DBPath string `ask:"--db-name" help:"The path used for the DB. It will be a memory DB if left empty."` IP string `ask:"--ip" help:"IP where the local beacon node can be reacheable.(default "localhost")"` Port string `` /* 145-byte string literal not displayed */ }
func (*GossipImportCmd) Default ¶
func (c *GossipImportCmd) Default()
func (*GossipImportCmd) Help ¶
func (c *GossipImportCmd) Help() string
Click to show internal directories.
Click to hide internal directories.