mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-29 20:27:14 +00:00
Addresses #9232 partially. This PR covers two topics only. * #9232 Wires up networking test vectors for `gossip_proposer_slashing` and `gossip_attester_slashing` topics. The tests also revealed minor spec non-compliance where invalid slashings were ignored rather than rejected. - Refactor `process_gossip_proposer_slashing` and `process_gossip_attester_slashing` to return `MessageAcceptance`, so it can be verified in the tests - Add `GossipValidation` test case, handler, and test entries - Spec compliance fix: distinguish between internal errors and validation error - return `Reject` when the slashing is invalid and only penalise on invalid messages Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
18 lines
426 B
Rust
18 lines
426 B
Rust
/// This crate provides the network server for Lighthouse.
|
|
pub mod service;
|
|
|
|
mod metrics;
|
|
mod nat;
|
|
mod network_beacon_processor;
|
|
mod persisted_dht;
|
|
mod router;
|
|
mod status;
|
|
mod subnet_service;
|
|
mod sync;
|
|
|
|
pub use lighthouse_network::NetworkConfig;
|
|
pub use network_beacon_processor::NetworkBeaconProcessor;
|
|
pub use service::{
|
|
NetworkMessage, NetworkReceivers, NetworkSenders, NetworkService, ValidatorSubscriptionMessage,
|
|
};
|