Skip to content
  1. Aug 12, 2019
  2. Aug 09, 2019
    • Sergey Pepyakin's avatar
      Replace ValidatorIdByIndex with CurrentElectedSet · eb1de193
      Sergey Pepyakin authored
      ValidatorIdByIndex was querying the current_elected set in each call, doing loading (even though its from cache), deserializing and cloning of element.
      
      Instead of this it is more efficient to use `CurrentElectedSet`. As a small bonus, the invariant became a little bit easier: now we just rely on the fact that `keys` and `current_elected` set are of the same length rather than relying on the fact that `validator_id_by_index` would work similar to `<[T]>::get`.
      eb1de193
  3. Aug 08, 2019
  4. Aug 07, 2019