mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-06 11:44:45 +00:00
rm Nimbus book reference to import --method=single-salt (#6805)
This commit is contained in:
parent
cb541463ed
commit
e29ef244ed
2
Makefile
2
Makefile
@ -72,7 +72,7 @@ TOOLS_CORE := \
|
||||
ncli_testnet \
|
||||
$(TOOLS_CORE_CUSTOMCOMPILE)
|
||||
|
||||
# This TOOLS/TOOLS_CORE decomposition is a workaroud so nimbus_beacon_node can
|
||||
# The TOOLS/TOOLS_CORE decomposition is a workaround so nimbus_beacon_node can
|
||||
# build on its own, and if/when that becomes a non-issue, it can be recombined
|
||||
# to a single TOOLS list.
|
||||
TOOLS := $(TOOLS_CORE) nimbus_beacon_node
|
||||
|
@ -448,7 +448,7 @@ proc publishAttestationsAndAggregates(
|
||||
raise exc
|
||||
|
||||
let aggregateTime =
|
||||
# chronos.Duration substraction could not return negative value, in such
|
||||
# chronos.Duration subtraction could not return negative value, in such
|
||||
# case it will return `ZeroDuration`.
|
||||
vc.beaconClock.durationToNextSlot() - OneThirdDuration
|
||||
if aggregateTime != ZeroDuration:
|
||||
@ -693,7 +693,7 @@ proc publishAttestationsAndAggregatesV2(
|
||||
raise exc
|
||||
|
||||
let aggregateTime =
|
||||
# chronos.Duration substraction could not return negative value, in such
|
||||
# chronos.Duration subtraction could not return negative value, in such
|
||||
# case it will return `ZeroDuration`.
|
||||
vc.beaconClock.durationToNextSlot() - OneThirdDuration
|
||||
if aggregateTime != ZeroDuration:
|
||||
|
@ -153,14 +153,6 @@ If your `validator_keys` folder is stored elsewhere, you can pass its location t
|
||||
Replacing `/path/to/keys` with the full pathname of where the `validator_keys` directory is found.
|
||||
|
||||
|
||||
### Optimized import for a large number of validators
|
||||
|
||||
If you plan to use a large number of validators (e.g. more than 100) on a single beacon node or a validator client, you might benefit from running the `deposits import` command with the option `--method=single-salt`.
|
||||
This will force Nimbus to use the same password and random salt value when encrypting all of the imported keystores which will later enable it to load the large number of validator keys almost instantly.
|
||||
The theoretical downside of using this approach is that it makes the brute-force cracking of all imported keystores computationally equivalent to cracking just one of them.
|
||||
Nevertheless, the security parameters used by Ethereum are such that cracking even a single keystore is considered computationally infeasible with current hardware.
|
||||
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If you come across an error, make sure that:
|
||||
|
@ -167,7 +167,7 @@ proc nfuzz_voluntary_exit(input: openArray[byte], xoutput: ptr byte,
|
||||
|
||||
# Note: Could also accept raw input pointer and access list_size + seed here.
|
||||
# However, list_size needs to be known also outside this proc to allocate xoutput.
|
||||
# TODO: rework to copy immediatly in an uint8 openArray, considering we have to
|
||||
# TODO: rework to copy immediately in an uint8 openArray, considering we have to
|
||||
# go over the list anyhow?
|
||||
func nfuzz_shuffle(input_seed: ptr byte, xoutput: var openArray[uint64]): bool
|
||||
{.exportc, raises: [].} =
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Copyright (c) 2023 Status Research & Development GmbH.
|
||||
# Copyright (c) 2023-2024 Status Research & Development GmbH.
|
||||
# Licensed under either of:
|
||||
# - Apache License, version 2.0
|
||||
# - MIT license
|
||||
@ -12,7 +12,7 @@ if ! command javac > /dev/null || ! javac -version > /dev/null; then
|
||||
# Instead, macOS ships with a stub executable that displays a message that
|
||||
# Java is not installed (javac -version exits with an error code 1).
|
||||
# If the user is running under these default settings, but a homebrew
|
||||
# installation is disovered, we are happy to use it just in this script:
|
||||
# installation is discovered, we are happy to use it just in this script:
|
||||
if [[ -d /opt/homebrew/opt/openjdk/bin ]]; then
|
||||
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user