23 lines
430 B
Nim
23 lines
430 B
Nim
import
|
|
"."/[beacon_clock, conf],
|
|
./el/el_manager,
|
|
./spec/forks,
|
|
./validators/[
|
|
message_router]
|
|
|
|
export
|
|
beacon_clock, conf,
|
|
forks,
|
|
message_router
|
|
|
|
type
|
|
BeaconNode* = ref object
|
|
config*: BeaconNodeConf
|
|
elManager*: ELManager
|
|
beaconClock*: BeaconClock
|
|
cfg*: RuntimeConfig
|
|
genesisState*: ref ForkedHashedBeaconState
|
|
|
|
proc currentSlot*(node: BeaconNode): Slot =
|
|
node.beaconClock.now.slotOrZero
|