mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Remove async recursion
Greatly increases safety as well by ensuring only one message is processed at once.
This commit is contained in:
@@ -166,6 +166,7 @@ pub trait Network: Send + Sync {
|
||||
|
||||
/// Trigger a slash for the validator in question who was definitively malicious.
|
||||
/// The exact process of triggering a slash is undefined and left to the network as a whole.
|
||||
// TODO: This is spammed right now.
|
||||
async fn slash(&mut self, validator: Self::ValidatorId);
|
||||
|
||||
/// Validate a block.
|
||||
|
||||
Reference in New Issue
Block a user