mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
c3d3397843
* Improve fallback_service. * Improve logging in fallback_service. * Apply signal handling for all stages. * Fix some logging statements. * Add doppelganger REST api endpoint. Add some structures to VC. * Add client API call implementation. * Initial fix & refactor onceToAll() Add doppelganger service. Add doppelganger helpers. * Add doppelganger checks. * Move doppelganger log messages to higher levels. * Fix firstSuccess(). * Bump chronos. * Post rebase fixes. * Proper chronos bump. * Address review comments. * Attempt to fix finalization test issue. * Fix nimbus_signing_node. * Mark validators which are added at GENESIS_SLOT in GENESIS_EPOCH as passed doppelganger validation. * Do not send empty requests to server. * Fix log statement. * Address review comments and re-raise cancellations. Co-authored-by: zah <zahary@gmail.com>
18 lines
760 B
Nim
18 lines
760 B
Nim
# Copyright (c) 2018-2022 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.
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
import
|
|
chronos, presto/client,
|
|
"."/[rest_types, eth2_rest_serialization]
|
|
|
|
proc getValidatorsActivity*(epoch: Epoch,
|
|
body: seq[ValidatorIndex]
|
|
): RestPlainResponse {.
|
|
rest, endpoint: "/nimbus/v1/validator/activity/{epoch}",
|
|
meth: MethodPost.}
|