referrerpolicy=no-referrer-when-downgrade

set_points_per_service

Function set_points_per_service 

Source
pub fn set_points_per_service<T: Config>(
    source: T::Source,
    service: ServiceKind,
    points: u32,
)
Expand description

Set the era points a validator earns for each unit of service on source.

Zero removes the entry, so source earns nothing for service. Fails with Error::PointsPerServiceTooHigh above Config::MaxPointsPerService, and with Error::RelayConsensusNotWeighted for [ServiceKind::RelayConsensus].

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::set_points_per_service.