-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Stash/controller model for staking #1782
Changes from 1 commit
e89dff9
8e9c2d5
29d1b20
ac5d897
bfc089f
fe19f73
24cedfb
0876c86
c9f643f
9190f7d
4b5274e
5354a2e
00ba07e
78bcf1a
5ec3741
ca18c79
a24dd8a
15a3100
bd0a3de
68f5405
001a665
7042842
75bf9d7
f4ba1d6
a008ee1
27ad50e
93d0eb0
9f7ba25
b755466
50a212c
1eb43f7
6eaddd1
e8661b2
7284530
7e9d469
31bed92
cadce5e
37adc08
039f4ea
4e67748
7fe7e01
a911ee9
514d5a6
1808869
2c4f738
a163f87
1296562
200eea1
15b9da0
634ab7b
94a46d4
1a2ec9e
dd7fba6
4b0e1e6
61224f6
e4ea05f
3b9917a
6f8f93d
4029139
cc8f195
b0129a0
92c0621
16a9239
1064cfc
6865917
937c89c
f606db2
6bf11f9
9a02201
be9f4f6
4ddaa42
54ee55b
a53c3fd
93da8d8
4603cfe
8bb2e43
2f43287
a4ca045
ee54da0
51d25ed
231a02d
68b5938
3a74b73
ae1e1e5
da9cb52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -741,8 +741,8 @@ impl<T: Trait> Module<T> { | |
| let event = if new_slash_count > max_slashes { | ||
| // They're bailing. | ||
| let slash = Self::current_offline_slash() | ||
| // Multiply current_offline_slash by 2^unstake_threshold | ||
| .checked_shl(prefs.unstake_threshold) | ||
| // Multiply current_offline_slash by 2^(unstake_threshold with upper bound) | ||
| .checked_shl(unstake_threshold) | ||
| .unwrap_or_else(Self::slot_stake); | ||
|
||
| let _ = Self::slash_validator(&v, slash); | ||
| <Validators<T>>::remove(&v); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.