Skip to content

Commit e2af16f

Browse files
Seulgi Kimmergify[bot]
authored andcommitted
Update the spec fo Dynamic Validators states
1 parent f8fbc34 commit e2af16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/Dynamic-Validator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ candidates = [ [address, deposits, nominate_end_at]+ ], address asc
222222
pending_rewards = [ [withdraw_at, address, quantity]+ ], [withdraw_at, address] asc
223223
banned = [ address+ ], address asc
224224
jailed = [ [address, deposits, custody_until, kicked_at]+ ], address asc
225-
term_changed_block_number = block number
225+
term_id = [ block number, term id ]
226226
```
227227

228228
### on TermEnd events
229-
1. Update `term_changed_block_number` to the current block number
229+
1. Update `term_id` to the current block number and the next term id
230230
3. Remove the expired candidates and give back the deposits
231231
3. Remove the jailed accounts if the current term is greater than `kicked_at` and give back the deposits
232232
4. Pay the pending rewards

0 commit comments

Comments
 (0)