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

Feature: request chunk protocol v2 #2144

Merged
merged 23 commits into from
Aug 5, 2024
Merged

Feature: request chunk protocol v2 #2144

merged 23 commits into from
Aug 5, 2024

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Jul 2, 2024

Referenced issues

Resolves partially #2135

Description of the Change

Support req_chunk/2 protocol.
Add/extend needed data structures.
Changed related func signatures.
Add func for computation chunk index from validator index considering provided node features.
REMAINING: need to integrate use function of mapping val_index to chunk_index (provided by PR).

Possible Drawbacks

Checklist Before Opening a PR

Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

  1. Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? Yes
  2. Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? Yes
  3. Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? Yes
  4. Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. No (need to update in next iteration)

xDimon added 7 commits June 28, 2024 11:47
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
…lated data/types

Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
…by val_index

Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon requested review from igor-egorov and iceseer July 2, 2024 14:02
xDimon added 7 commits July 3, 2024 14:39
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon requested a review from kamilsa July 12, 2024 15:26
@kamilsa kamilsa removed the request for review from igor-egorov July 15, 2024 08:55
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon enabled auto-merge (squash) August 5, 2024 10:26
xDimon added 2 commits August 5, 2024 13:33
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@@ -97,7 +97,7 @@ namespace kagome::network {
const std::thread::id this_id_{std::this_thread::get_id()};

void check() const {
BOOST_ASSERT(this_id_ == std::this_thread::get_id());
// BOOST_ASSERT(this_id_ == std::this_thread::get_id());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove this function?

cached_.emplace(it->first, result);

if (result.has_value()) {
// incFullRecoveriesFinished("unknown", "success"); // TODO fix strategy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create issue or remove

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will fixed in my next PR (systematic chunks)

@xDimon xDimon merged commit 16a461a into master Aug 5, 2024
17 of 19 checks passed
@xDimon xDimon deleted the feature/req_chunk_v2 branch August 5, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants