Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kad: Refactor GetRecord query and add tests #97

Merged
merged 19 commits into from
May 16, 2024
Merged

Commits on Apr 29, 2024

  1. kad: Extend records event with multiple peers and different records

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    4d089ab View commit details
    Browse the repository at this point in the history
  2. kad: Return HashMap<record, vec<peers>>

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    4257819 View commit details
    Browse the repository at this point in the history
  3. kad/query: Do not propagate expired records

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    3f210b1 View commit details
    Browse the repository at this point in the history
  4. kad/tests: Check all peers return the same record

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    a1b3f10 View commit details
    Browse the repository at this point in the history
  5. kad: Return vec of records instead

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    1143636 View commit details
    Browse the repository at this point in the history
  6. kad/query: Extract immutable components to GetRecordConfig

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8efdf89 View commit details
    Browse the repository at this point in the history
  7. kad/get_record: Avoid panics

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    72f7fbc View commit details
    Browse the repository at this point in the history
  8. kad/get_record: Refactor query candidates

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    23fdf7d View commit details
    Browse the repository at this point in the history
  9. kad/get_record: Clean-up next action state and avoid panics

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    136b59e View commit details
    Browse the repository at this point in the history
  10. kad/get_record: Cache kad msg to avoid encoding multiple times

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    d232828 View commit details
    Browse the repository at this point in the history
  11. kad/get_record: Fix clippy

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    5419fe2 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. tests: Check config sufficient query results

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    605dcc2 View commit details
    Browse the repository at this point in the history
  2. tests: Check query completes when peers are empty

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2d3d9d6 View commit details
    Browse the repository at this point in the history
  3. tests: Check query fulfills parallelism factor

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    547725b View commit details
    Browse the repository at this point in the history
  4. tests: Check query completes on results

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2e6b495 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. kad/get_record: Rename record_count to known_records

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed May 16, 2024
    Configuration menu
    Copy the full SHA
    424c40a View commit details
    Browse the repository at this point in the history
  2. get_record/tests: Update known records to 1 instead of 10

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed May 16, 2024
    Configuration menu
    Copy the full SHA
    efe91d4 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/master' into lexnv/refactor-get-…

    …records
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed May 16, 2024
    Configuration menu
    Copy the full SHA
    9fb4a06 View commit details
    Browse the repository at this point in the history
  4. kad: Apply rustfmt

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed May 16, 2024
    Configuration menu
    Copy the full SHA
    91968c2 View commit details
    Browse the repository at this point in the history