mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-13 15:38:21 +00:00
1d278aaa83
## Issue Addressed Implements support for importing and exporting the slashing protection DB interchange format described here: https://hackmd.io/@sproul/Bk0Y0qdGD Also closes #1584 ## Proposed Changes * [x] Support for serializing and deserializing the format * [x] Support for importing and exporting Lighthouse's database * [x] CLI commands to invoke import and export * [x] Export to minimal format (required when a minimal format has been previously imported) * [x] Tests for export to minimal (utilising mixed importing and attestation signing?) * [x] Tests for import/export of complete format, and import of minimal format * [x] ~~Prevent attestations with sources less than our max source (Danny's suggestion). Required for the fake attestation that we put in for the minimal format to block attestations from source 0.~~ * [x] Add the concept of a "low watermark" for compatibility with the minimal format Bonus! * [x] A fix to a potentially nasty bug involving validators getting re-registered each time the validator client ran! Thankfully, the ordering of keys meant that the validator IDs used for attestations and blocks remained stable -- otherwise we could have had some slashings on our hands! 😱 * [x] Tests to confirm that this bug is indeed vanquished
42 lines
1.4 KiB
TOML
42 lines
1.4 KiB
TOML
[package]
|
|
name = "lighthouse"
|
|
version = "0.2.13"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
# Writes debugging .ssz files to /tmp during block processing.
|
|
write_ssz_files = ["beacon_node/write_ssz_files"]
|
|
# Compiles the BLS crypto code so that the binary is portable across machines.
|
|
portable = ["bls/supranational-portable"]
|
|
# Uses the slower Milagro BLS library, which is written in native Rust.
|
|
milagro = ["bls/milagro"]
|
|
|
|
[dependencies]
|
|
beacon_node = { "path" = "../beacon_node" }
|
|
tokio = "0.2.21"
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
sloggers = "1.0.0"
|
|
types = { "path" = "../consensus/types" }
|
|
bls = { path = "../crypto/bls" }
|
|
clap = "2.33.0"
|
|
env_logger = "0.7.1"
|
|
logging = { path = "../common/logging" }
|
|
slog-term = "2.5.0"
|
|
slog-async = "2.5.0"
|
|
environment = { path = "./environment" }
|
|
boot_node = { path = "../boot_node" }
|
|
futures = "0.3.5"
|
|
validator_client = { "path" = "../validator_client" }
|
|
account_manager = { "path" = "../account_manager" }
|
|
clap_utils = { path = "../common/clap_utils" }
|
|
eth2_testnet_config = { path = "../common/eth2_testnet_config" }
|
|
directory = { path = "../common/directory" }
|
|
lighthouse_version = { path = "../common/lighthouse_version" }
|
|
account_utils = { path = "../common/account_utils" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|
|
validator_dir = { path = "../common/validator_dir" }
|
|
slashing_protection = { path = "../validator_client/slashing_protection" }
|