Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 352bae2

Browse files
authored
Make SlashingSpans Public (#6961)
* Make SlashingSpans Public Offchain Applications will often need to inspect this type because it is directly used in staking election, thus worthy of being `pub`. Rest of the slashing api can remain private, only this and the `fn last_non_zero_slash()` of `SlashingSpans` are of interest. * Update frame/staking/src/lib.rs
1 parent 6f04f93 commit 352bae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frame/staking/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ decl_storage! {
11621162
=> Option<BalanceOf<T>>;
11631163

11641164
/// Slashing spans for stash accounts.
1165-
SlashingSpans: map hasher(twox_64_concat) T::AccountId => Option<slashing::SlashingSpans>;
1165+
SlashingSpans get(fn slashing_spans): map hasher(twox_64_concat) T::AccountId => Option<slashing::SlashingSpans>;
11661166

11671167
/// Records information about the maximum slash of a stash within a slashing span,
11681168
/// as well as how much reward has been paid out.

0 commit comments

Comments
 (0)