mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-05 16:54:00 +00:00
24 lines
826 B
Nim
24 lines
826 B
Nim
# 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"
|