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
36 lines
1.2 KiB
TOML
36 lines
1.2 KiB
TOML
[package]
|
|
name = "account_manager"
|
|
version = "0.2.13"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Luke Anderson <luke@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bls = { path = "../crypto/bls" }
|
|
clap = "2.33.0"
|
|
slog = "2.5.2"
|
|
slog-term = "2.5.0"
|
|
slog-async = "2.5.0"
|
|
types = { path = "../consensus/types" }
|
|
state_processing = { path = "../consensus/state_processing" }
|
|
dirs = "2.0.2"
|
|
environment = { path = "../lighthouse/environment" }
|
|
deposit_contract = { path = "../common/deposit_contract" }
|
|
libc = "0.2.65"
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
hex = "0.4.2"
|
|
rayon = "1.3.0"
|
|
eth2_testnet_config = { path = "../common/eth2_testnet_config" }
|
|
web3 = "0.11.0"
|
|
futures = { version = "0.3.5", features = ["compat"] }
|
|
clap_utils = { path = "../common/clap_utils" }
|
|
directory = { path = "../common/directory" }
|
|
eth2_wallet = { path = "../crypto/eth2_wallet" }
|
|
eth2_wallet_manager = { path = "../common/eth2_wallet_manager" }
|
|
rand = "0.7.2"
|
|
validator_dir = { path = "../common/validator_dir" }
|
|
tokio = { version = "0.2.21", features = ["full"] }
|
|
eth2_keystore = { path = "../crypto/eth2_keystore" }
|
|
account_utils = { path = "../common/account_utils" }
|
|
slashing_protection = { path = "../validator_client/slashing_protection" }
|