mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-13 18:35:51 +00:00
Beefy: Provide well-formed ValidatorSet (#10445)
* beefy: provide well-formed ValidatorSet * pallet-beefy: use well-formed ValidatorSet * pallet-beefy-mmr: use well-formed ValidatorSet * beefy-gadget: fail votes early when ValidatorSet empty * beefy: small efficiency improvements * address review comments Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
@@ -89,8 +89,8 @@ impl BeefyKeystore {
|
||||
let store = self.0.clone().ok_or_else(|| error::Error::Keystore("no Keystore".into()))?;
|
||||
|
||||
let pk: Vec<Public> = SyncCryptoStore::ecdsa_public_keys(&*store, KEY_TYPE)
|
||||
.iter()
|
||||
.map(|k| Public::from(k.clone()))
|
||||
.drain(..)
|
||||
.map(Public::from)
|
||||
.collect();
|
||||
|
||||
Ok(pk)
|
||||
|
||||
Reference in New Issue
Block a user