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

Commit

Permalink
make submissions pub (#10899)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Feb 22, 2022
1 parent 1db34ff commit b16a721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frame/election-provider-multi-phase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ pub mod pallet {
/// capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
/// because iteration is slow. Instead, we store the value here.
#[pallet::storage]
pub(crate) type SignedSubmissionNextIndex<T: Config> = StorageValue<_, u32, ValueQuery>;
pub type SignedSubmissionNextIndex<T: Config> = StorageValue<_, u32, ValueQuery>;

/// A sorted, bounded set of `(score, index)`, where each `index` points to a value in
/// `SignedSubmissions`.
Expand All @@ -1242,7 +1242,7 @@ pub mod pallet {
/// can be quite large, so we're willing to pay the cost of multiple database accesses to access
/// them one at a time instead of reading and decoding all of them at once.
#[pallet::storage]
pub(crate) type SignedSubmissionIndices<T: Config> =
pub type SignedSubmissionIndices<T: Config> =
StorageValue<_, SubmissionIndicesOf<T>, ValueQuery>;

/// Unchecked, signed solutions.
Expand All @@ -1253,7 +1253,7 @@ pub mod pallet {
/// Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
/// affect; we shouldn't need a cryptographically secure hasher.
#[pallet::storage]
pub(crate) type SignedSubmissionsMap<T: Config> =
pub type SignedSubmissionsMap<T: Config> =
StorageMap<_, Twox64Concat, u32, SignedSubmissionOf<T>, OptionQuery>;

// `SignedSubmissions` items end here.
Expand Down

0 comments on commit b16a721

Please sign in to comment.