The following fields have been removed from GenesisConfig: min_bond_threshold;
The following fields have been added to GenesisConfig: min_nominator_bond, min_validator_bond, max_validator_count, max_nominator_count;
In do_payout_stakers call T::Reward::on_unbalanced(total_imbalance);
In chill_stash emit Chilled;
In new_session remove call to ForceEra::<T>::kill() if Forcing::ForceNew;
In new_session remove call to Self::close_election_window();
In end_era
In set_force_era emit ForceEra event;
Removes ValidateUnsigned impl for the pallet;
data migration
Validators storage changed from StorageMap to CountedStorageMap;
Nominators storage changed from StorageMap to CountedStorageMap;
The following Storage have been removed: SnapshotValidators, SnapshotNominators, QueuedElected, QueuedScore, EraElectionStatus, IsCurrentSessionFinal, HistoryDepth, MinimumBondThreshold, EarliestUnappliedSlash;
The following storage have changed types: Validators, Nominators;
changelog
new features
kick
,set_staking_configs
,chill_other
,force_apply_min_commission
,set_min_commission
;modified external API
StakingLedger::unlocking
andStakingLedger::claimed_rewards
types changed fromVec
toBoundedVec
;The following extrinsics were removed:
set_min_bond_threshold
,set_history_depth
,submit_election_solution
,submit_election_solution_unsigned
;The following events have been removed:
StakingElection
,SolutionStored
,MinimumBondThresholdUpdated
;Adds the following error variants:
DuplicateIndex
,InsufficientBond
,InvalidNumberOfNominations
,IncorrectHistoryDepth
,CannotChillOther
,TooManyValidators
,CommissionTooLow
,IdentityIsAlreadyPermissioned
,IdentityIsMissingCDD
,IdentityNotFound
,ValidatorNotFound
;Removes the following error variants:
InsufficientValue
,OffchainElectionEarlySubmission
,OffchainElectionWeakSubmission
,SnapshotUnavailable
,OffchainElectionBogusWinnerCount
,OffchainElectionBogusWinner
,OffchainElectionBogusCompact
,OffchainElectionBogusNominator
,OffchainElectionBogusNomination
,OffchainElectionSlashedNomination
,OffchainElectionBogusSelfVote
,OffchainElectionBogusEdge
,OffchainElectionBogusScore
,OffchainElectionBogusElectionSize
,CallNotAllowed
,AlreadyExists
,NotExists
,NoChange
,InvalidValidatorIdentity
,InvalidValidatorCommission
,HitIntendedValidatorCount
,BondTooSmall
,InvalidValidatorUnbondAmount
;new external API
MinNominatorBond
,MinValidatorBond
,MinimumActiveStake
,MinCommission
,MaxValidatorsCount
,MaxNominatorsCount
,CurrentPlannedSession
,ChillThreshold
;EarliestUnappliedSlash
,SnapshotValidators
,SnapshotNominators
,QueuedElected
,QueuedScore
,EraElectionStatus
,IsCurrentSessionFinal
,MinimumBondThreshold
modified events
new events
StakersElected
,StakingElectionFailed
,Kicked
,Chilled
,PayoutStarted
,ValidatorPrefsSet
,ForceEra
;other
ElectionCompute
,ElectionResult
,ElectionStatus
andElectionSize
;StakingLedger::slash()
function has been update to implement a a proportional slashing system;EraPayout
trait;ConvertCurve
which implementsEraPayout
this is needed since the associated typeT::Reward
no longer exists;SlashParams::disable_strategy
;compute_slash
the offending validator will be disabled only ifparams.disable_strategy != DisableStrategy::Never
;kick_out_if_recent
the offending validator will be disabled only ifparams.disable_strategy == DisableStrategy::Always
;CurrencyBalance
,ElectionProvider
,GenesisElectionProvider
,HistoryDepth
,AdminOrigin
,EraPayout
,VoterList
,TargetList
,OnStakerSlash
,BenchmarkingConfig
;SlashCancelOrigin
,RewardCurve
,ElectionLookahead
,MaxIterations
,MinSolutionScoreBump
,UnsignedPriority
,OffchainSolutionWeightLimit
,RequiredAddOrigin
,RequiredRemoveOrigin
,RequiredCommissionOrigin
,MinimumBond
;GenesisConfig
:min_bond_threshold
;GenesisConfig
:min_nominator_bond
,min_validator_bond
,max_validator_count
,max_nominator_count
;do_payout_stakers
callT::Reward::on_unbalanced(total_imbalance)
;chill_stash
emitChilled
;new_session
remove call toForceEra::<T>::kill()
if Forcing::ForceNew;new_session
remove call toSelf::close_election_window()
;end_era
set_force_era
emitForceEra
event;ValidateUnsigned
impl for the pallet;data migration
Validators
storage changed fromStorageMap
toCountedStorageMap
;Nominators
storage changed fromStorageMap
toCountedStorageMap
;