@@ -198,7 +198,7 @@ The transaction will reprioritize the sender.
198
198
199
199
It's a transaction used by the stakeholders to select the validators.
200
200
The 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.
202
202
The delegations return automatically when the delegatee becomes eligible or banned.
203
203
204
204
* DELEGATE* transactions to banned, jailed or eligible accounts fail.
@@ -280,11 +280,12 @@ fn reprioritize(candidates: &mut Vec<Candidate>, target: &Address) {
280
280
```
281
281
282
282
### 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 ` .
284
284
2 . Renew the nomination expiration of the current validators, and reprioritize them.
285
285
* 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