lighthouse/beacon_node/network/src
Michael Sproul 5828ff1204 Implement slasher (#1567)
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
2020-11-23 03:43:22 +00:00
..
attestation_service Add flag to import all attestations (#1941) 2020-11-22 23:58:25 +00:00
beacon_processor Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00
router Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00
service Upgrade discovery and restructure task execution (#1693) 2020-10-05 18:45:54 +11:00
sync move sync state to the chains KV (#1940) 2020-11-22 23:58:23 +00:00
error.rs Initial work towards v0.2.0 (#924) 2020-03-17 17:24:44 +11:00
lib.rs Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00
metrics.rs Gossipsub scoring (#1668) 2020-11-12 01:48:28 +00:00
nat.rs Update libp2p (#1865) 2020-11-06 04:14:14 +00:00
persisted_dht.rs Add database schema versioning (#1688) 2020-10-01 11:12:36 +10:00
service.rs Implement slasher (#1567) 2020-11-23 03:43:22 +00:00
status.rs Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00