mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-01 08:29:49 +00:00
grandpa: minor cleanups in communication module (#6371)
* grandpa: replace Result<(), ()> with Option<()> * grandpa: replace &Option<T> with Option<&T> * grandpa: cleanup local id and keystore usages * grandpa: return bool on check_message_signature * grandpa: fix erroneous log message on startup * grandpa: fix test
This commit is contained in:
1 parent
53be6ec510
commit
4cf1b4fa7b
9 files changed
+79
-51
No files matched your search
@@ -145,7 +145,7 @@ where
|
||||
|
||||
// validate equivocation proof (check votes are different and
|
||||
// signatures are valid).
|
||||
if let Err(_) = sp_finality_grandpa::check_equivocation_proof(equivocation_proof.clone()) {
|
||||
if !sp_finality_grandpa::check_equivocation_proof(equivocation_proof.clone()) {
|
||||
return Err(ReportEquivocationValidityError::InvalidEquivocationProof.into());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user