mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +00:00
Remove deadlock in cosign_evaluator
This commit is contained in:
parent
30a77d863f
commit
14f3f330db
1 changed files with 4 additions and 2 deletions
|
@ -256,8 +256,10 @@ impl<D: Db> CosignEvaluator<D> {
|
||||||
panic!("17% of validator sets (by stake) have co-signed a distinct chain");
|
panic!("17% of validator sets (by stake) have co-signed a distinct chain");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let mut latest_cosigns = self.latest_cosigns.write().await;
|
{
|
||||||
latest_cosigns.insert(cosign.network, (block.number(), cosign));
|
let mut latest_cosigns = self.latest_cosigns.write().await;
|
||||||
|
latest_cosigns.insert(cosign.network, (block.number(), cosign));
|
||||||
|
}
|
||||||
self.update_latest_cosign().await;
|
self.update_latest_cosign().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue