File tree 3 files changed +4
-10
lines changed
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 21
21
// UpdatedValidatorsCacheKey tracks recently updated validators from SetPower.
22
22
UpdatedValidatorsCacheKey = collections .NewPrefix (4 )
23
23
24
+ // BeforeJailedValidatorsKey tracks validators that are about to be jailed (from staking hooks).
24
25
BeforeJailedValidatorsKey = collections .NewPrefix (5 )
25
26
)
26
27
Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ import (
11
11
)
12
12
13
13
func (am AppModule ) EndBlocker (ctx context.Context ) error {
14
- sk := am .keeper .GetStakingKeeper ()
15
-
16
- // Front running x/staking maturity ?
17
- if err := sk .UnbondAllMatureValidators (ctx ); err != nil {
18
- return err
19
- }
20
-
21
14
if err := am .handleBeforeJailedValidators (ctx ); err != nil {
22
15
return err
23
16
}
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ func NewSimApp(
329
329
stakingtypes .NewMultiStakingHooks (
330
330
app .DistrKeeper .Hooks (),
331
331
app .SlashingKeeper .Hooks (),
332
- app .POAKeeper .Hooks (),
332
+ app .POAKeeper .Hooks (), // must impl for jailing functionality
333
333
),
334
334
)
335
335
@@ -454,15 +454,15 @@ func NewSimApp(
454
454
distrtypes .ModuleName ,
455
455
slashingtypes .ModuleName ,
456
456
evidencetypes .ModuleName ,
457
- poa .ModuleName , // TODO: has to be first
457
+ poa .ModuleName , // before staking
458
458
stakingtypes .ModuleName ,
459
459
genutiltypes .ModuleName ,
460
460
authz .ModuleName ,
461
461
)
462
462
app .ModuleManager .SetOrderEndBlockers (
463
463
crisistypes .ModuleName ,
464
464
govtypes .ModuleName ,
465
- poa .ModuleName , // TODO: pretty sure this has to go first so we can remove jailed before BlockValidatorUpdates
465
+ poa .ModuleName , // before staking
466
466
stakingtypes .ModuleName ,
467
467
genutiltypes .ModuleName ,
468
468
feegrant .ModuleName ,
You can’t perform that action at this time.
0 commit comments