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

Improved dispute votes import in provisioner #5567

Merged
merged 35 commits into from
Sep 19, 2022

Commits on Aug 31, 2022

  1. Add DisputeState to DisputeCoordinatorMessage::RecentDisputes

    The new signature of the message is:
    ```
    RecentDisputes(oneshot::Sender<Vec<(SessionIndex, CandidateHash, DisputeStatus)>>),
    ```
    
    As part of the change also add `DispiteStatus` to
    `polkadot_node_primitives`.
    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    855d6da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    396187e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23013f4 View commit details
    Browse the repository at this point in the history
  4. Implementation

    * Move disputes to separate module
    * Vote prioritisation
    * Duplicates handling
    * Double vote handling
    * Unit tests
    * Logs and metrics
    * Code review feedback
    * Fix ACTIVE/INACTIVE separation and update partition names
    * Add `fn dispute_is_inactive` to node primitives and refactor `fn get_active_with_status()` logic
    * Keep the 'old' logic if the staging api is not enabled
    * Fix some comments in tests
    * Add warning message if there are any inactive_unknown_onchain disputes
    * Add file headers and remove `use super::*;` usage outside tests
    * Adding doc comments
    * Fix test methods names
    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    140c1e8 View commit details
    Browse the repository at this point in the history
  5. Fix staging api usage

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    040d1fb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b8f6566 View commit details
    Browse the repository at this point in the history
  7. Fix compilation error

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    1be7983 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    60c1ddb View commit details
    Browse the repository at this point in the history
  9. Use smaller test data

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    e1654e7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e3179cb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7e3bab7 View commit details
    Browse the repository at this point in the history
  12. fmt

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    24ae8ce View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    00bd01b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c771aa6 View commit details
    Browse the repository at this point in the history
  15. Rename dispute selection modules in provisioner

    with_staging_api -> prioritized_selection
    without_staging_api -> random_selection
    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    543b4ef View commit details
    Browse the repository at this point in the history
  16. Comments for staging api

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    98ee76f View commit details
    Browse the repository at this point in the history
  17. Comments

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    1884262 View commit details
    Browse the repository at this point in the history
  18. Additional logging

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    e6a6843 View commit details
    Browse the repository at this point in the history
  19. Code review feedback

    process_selected_disputes -> into_multi_dispute_statement_set
    typo
    In trait VoteType: vote_value -> is_valid
    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    5f8b462 View commit details
    Browse the repository at this point in the history
  20. Code review feedback

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    95b0096 View commit details
    Browse the repository at this point in the history
  21. Fix metrics

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    0f9cf6a View commit details
    Browse the repository at this point in the history
  22. get_disputes -> disputes

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    308a363 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    a969eba View commit details
    Browse the repository at this point in the history
  24. Fix partitioning

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    57e1b88 View commit details
    Browse the repository at this point in the history
  25. Comments

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    db34125 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    d2af967 View commit details
    Browse the repository at this point in the history
  27. Code review feedback

    tdimitrov committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    1366d90 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Unused import

    tdimitrov committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    aeef116 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Comments

    tdimitrov committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    fd24899 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. More precise log messages

    tdimitrov committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    49a7b24 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Code review feedback

    tdimitrov committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    3b018cf View commit details
    Browse the repository at this point in the history
  2. Code review feedback

    tdimitrov committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    58a0f01 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    babd20d View commit details
    Browse the repository at this point in the history
  4. Code review feedback

    tdimitrov committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    a477226 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9eeedbb View commit details
    Browse the repository at this point in the history