Skip to content

Commit 80f0196

Browse files
committed
Update the dynamic validator spec to match with the behavior
1 parent 0ab8343 commit 80f0196

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

spec/Dynamic-Validator.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ The transaction will reprioritize the sender.
198198

199199
It's a transaction used by the stakeholders to select the validators.
200200
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.
202202
The 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`.
284284
2. 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

Comments
 (0)