5828ff1204
This is an implementation of a slasher that lives inside the BN and can be enabled via `lighthouse bn --slasher`. Features included in this PR: - [x] Detection of attester slashing conditions (double votes, surrounds existing, surrounded by existing) - [x] Integration into Lighthouse's attestation verification flow - [x] Detection of proposer slashing conditions - [x] Extraction of attestations from blocks as they are verified - [x] Compression of chunks - [x] Configurable history length - [x] Pruning of old attestations and blocks - [x] More tests Future work: * Focus on a slice of history separate from the most recent N epochs (e.g. epochs `current - K` to `current - M`) * Run out-of-process * Ingest attestations from the chain without a resync Design notes are here https://hackmd.io/@sproul/HJSEklmPL
48 lines
1.4 KiB
TOML
48 lines
1.4 KiB
TOML
[package]
|
|
name = "client"
|
|
version = "0.2.0"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dev-dependencies]
|
|
sloggers = "1.0.1"
|
|
toml = "0.5.6"
|
|
|
|
[dependencies]
|
|
beacon_chain = { path = "../beacon_chain" }
|
|
store = { path = "../store" }
|
|
network = { path = "../network" }
|
|
timer = { path = "../timer" }
|
|
eth2_libp2p = { path = "../eth2_libp2p" }
|
|
parking_lot = "0.11.0"
|
|
websocket_server = { path = "../websocket_server" }
|
|
prometheus = "0.10.0"
|
|
types = { path = "../../consensus/types" }
|
|
tree_hash = "0.1.1"
|
|
eth2_config = { path = "../../common/eth2_config" }
|
|
slot_clock = { path = "../../common/slot_clock" }
|
|
serde = "1.0.116"
|
|
serde_derive = "1.0.116"
|
|
error-chain = "0.12.4"
|
|
serde_yaml = "0.8.13"
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
slog-async = "2.5.0"
|
|
tokio = "0.2.22"
|
|
dirs = "3.0.1"
|
|
futures = "0.3.5"
|
|
reqwest = { version = "0.10.8", features = ["native-tls-vendored"] }
|
|
url = "2.1.1"
|
|
eth1 = { path = "../eth1" }
|
|
genesis = { path = "../genesis" }
|
|
task_executor = { path = "../../common/task_executor" }
|
|
environment = { path = "../../lighthouse/environment" }
|
|
eth2_ssz = "0.1.2"
|
|
lazy_static = "1.4.0"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
time = "0.2.22"
|
|
bus = "2.2.3"
|
|
directory = {path = "../../common/directory"}
|
|
http_api = { path = "../http_api" }
|
|
http_metrics = { path = "../http_metrics" }
|
|
slasher = { path = "../../slasher" }
|