mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-29 20:27:14 +00:00
Add slasher broadcast (#2079)
## Issue Addressed Closes #2048 ## Proposed Changes * Broadcast slashings when the `--slasher-broadcast` flag is provided. * In the process of implementing this I refactored the slasher service into its own crate so that it could access the network code without creating a circular dependency. I moved the responsibility for putting slashings into the op pool into the service as well, as it makes sense for it to handle the whole slashing lifecycle.
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
mod array;
|
||||
mod attestation_queue;
|
||||
mod attester_record;
|
||||
mod batch_stats;
|
||||
mod block_queue;
|
||||
pub mod config;
|
||||
mod database;
|
||||
mod error;
|
||||
mod metrics;
|
||||
pub mod metrics;
|
||||
mod slasher;
|
||||
mod slasher_server;
|
||||
pub mod test_utils;
|
||||
mod utils;
|
||||
|
||||
@@ -20,7 +20,6 @@ pub use block_queue::BlockQueue;
|
||||
pub use config::Config;
|
||||
pub use database::SlasherDB;
|
||||
pub use error::Error;
|
||||
pub use slasher_server::SlasherServer;
|
||||
|
||||
use types::{AttesterSlashing, EthSpec, IndexedAttestation, ProposerSlashing};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user