mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 23:19:24 +00:00
Update a few comments in the validator-sets pallet
This commit is contained in:
@@ -1016,12 +1016,9 @@ pub mod pallet {
|
|||||||
#[pallet::weight(0)] // TODO
|
#[pallet::weight(0)] // TODO
|
||||||
pub fn allocate(origin: OriginFor<T>, network: NetworkId, amount: Amount) -> DispatchResult {
|
pub fn allocate(origin: OriginFor<T>, network: NetworkId, amount: Amount) -> DispatchResult {
|
||||||
let validator = ensure_signed(origin)?;
|
let validator = ensure_signed(origin)?;
|
||||||
// If this network utilizes an embedded elliptic curve, require the validator to have set the
|
// If this network utilizes embedded elliptic curve(s), require the validator to have set the
|
||||||
// appropriate key
|
// appropriate key(s)
|
||||||
for embedded_elliptic_curve in network.embedded_elliptic_curves() {
|
for embedded_elliptic_curve in network.embedded_elliptic_curves() {
|
||||||
// Require an Embedwards25519 embedded curve key and a key for the curve for this network
|
|
||||||
// The Embedwards25519 embedded curve key is required for the DKG for the Substrate key
|
|
||||||
// used to oraclize events with
|
|
||||||
if !EmbeddedEllipticCurveKeys::<T>::contains_key(validator, *embedded_elliptic_curve) {
|
if !EmbeddedEllipticCurveKeys::<T>::contains_key(validator, *embedded_elliptic_curve) {
|
||||||
Err(Error::<T>::MissingEmbeddedEllipticCurveKey)?;
|
Err(Error::<T>::MissingEmbeddedEllipticCurveKey)?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user