@@ -198,7 +198,7 @@ The transaction will reprioritize the sender.
198198
199199It's a transaction used by the stakeholders to select the validators.
200200The stakeholders can delegate as much stakes as they have.
201- The stakeholders can delegate any candidates, including validators and jailed accounts .
201+ The stakeholders can delegate any candidates, including validators.
202202The delegations return automatically when the delegatee becomes eligible or banned.
203203
204204* DELEGATE* transactions to banned, jailed or eligible accounts fail.
@@ -280,11 +280,12 @@ fn reprioritize(candidates: &mut Vec<Candidate>, target: &Address) {
280280```
281281
282282### on TermEnd events
283- 1 . Update ` term_id ` to the current block number and the next term id
283+ 1 . Calculate rewards of the previous block and update ` intermediate_rewards ` .
2842842 . Renew the nomination expiration of the current validators, and reprioritize them.
285285 * Reprioritization preserves the relative order of the reprioritized validators.
286- 3 . Remove the expired candidates and give back the deposits
287- 4 . Remove the jailed accounts if the current term is greater than ` released_at ` and give back the deposits
288- 5 . Calculate rewards of the previous block and update ` intermediate_rewards `
289- 6 . Elect validators
290- * Store validators in the ascending order
286+ 3 . Remove the expired candidates and give back the deposits.
287+ 4 . Remove the jailed accounts if the current term is greater than ` released_at ` and give back the deposits.
288+ 5 . Jail inactive validators.
289+ 6 . Elect validators.
290+ * Store validators in the ascending order.
291+ 7 . Update ` term_id ` to the current block number and the next term id.
0 commit comments