mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Implement gloas proposer preference vc duty (#9208)
Allow for the vc to submit its proposer preferences to the network Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -526,15 +526,11 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
||||
self: &Arc<Self>,
|
||||
message_id: MessageId,
|
||||
peer_id: PeerId,
|
||||
proposer_preferences: Box<SignedProposerPreferences>,
|
||||
proposer_preferences: Arc<SignedProposerPreferences>,
|
||||
) -> Result<(), Error<T::EthSpec>> {
|
||||
let processor = self.clone();
|
||||
let process_fn = move || {
|
||||
processor.process_gossip_proposer_preferences(
|
||||
message_id,
|
||||
peer_id,
|
||||
Arc::new(*proposer_preferences),
|
||||
)
|
||||
processor.process_gossip_proposer_preferences(message_id, peer_id, proposer_preferences)
|
||||
};
|
||||
|
||||
self.try_send(BeaconWorkEvent {
|
||||
|
||||
Reference in New Issue
Block a user