pub fn register_validators<'a>(
        &self,
        public_keys: impl Iterator<Item = &'a PublicKeyBytes>,
    ) -> Result<(), NotSafe> {
        let mut conn = self.conn_pool.get()?;
        let txn = conn.transaction()?;
        self.register_validators_in_txn(public_keys, &txn)?;
        txn.commit()?;
        Ok(())
    }
/// Register multiple validators with the slashing protection database.
Register multiple validators with the slashing protection database.
Register multiple validators with the slashing protection database .
pub fn register_validators<'a>(
        &self,
        public_keys: impl Iterator<Item = &'a PublicKeyBytes>,
    ) -> Result<(), NotSafe> {
        let mut conn = self.conn_pool.get()?;
        let txn = conn.transaction()?;
        self.register_validators_in_txn(public_keys, &txn)?;
        txn.commit()?;
        Ok(())
    }
pub fn register_validators < ' a > ( & self , public_keys : impl Iterator < Item = & ' a PublicKeyBytes > , ) -> Result < ( ) , NotSafe > { let mut conn = self . conn_pool . get ( ) ? ; let txn = conn . transaction ( ) ? ; self . register_validators_in_txn ( public_keys , & txn ) ? ; txn . commit ( ) ? ; Ok ( ( ) ) }
Register multiple validators with the slashing protection database.
Register multiple validators with the slashing protection database .
&self
public_keys
impl Iterator<Item = &'a PublicKeyBytes>