nimbus-eth1/nimbus_unified/consensus/consensus_wrapper.nim

24 lines
826 B
Nim
Raw Normal View History

# nimbus_unified
# Copyright (c) 2024 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import chronicles, std/[os, atomics], ../configs/nimbus_configs
export nimbus_configs
## log
logScope:
topics = "Consensus layer"
proc consensusWrapper*(parameters: TaskParameters) =
info "Consensus wrapper:", worker = parameters.name
while true:
sleep(3000)
info "looping consensus"
if isShutDownRequired.load() == true:
break
warn "\tExiting consensus wrapper"