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

Implement gateway RPC launch and piece getting #3148

Merged
merged 15 commits into from
Oct 22, 2024
Merged

Implement gateway RPC launch and piece getting #3148

merged 15 commits into from
Oct 22, 2024

Conversation

teor2345
Copy link
Member

@teor2345 teor2345 commented Oct 18, 2024

This PR makes the gateway get pieces from the DSN, validate them, and reconstruct them into objects.

It also:

  • improves PieceValidator debug formatting
  • logs the RPC server address
  • fixes a confusing error name
  • fixes a farmer log typo

Code contributor checklist:

@teor2345 teor2345 added the enhancement New feature or request label Oct 18, 2024
@teor2345 teor2345 self-assigned this Oct 18, 2024
@teor2345

This comment was marked as resolved.

@teor2345 teor2345 changed the title Implement basic gateway piece getting Implement basic gateway RPC launch and piece getting Oct 18, 2024
@nazar-pc

This comment was marked as resolved.

@teor2345

This comment was marked as resolved.

@nazar-pc

This comment was marked as resolved.

@teor2345
Copy link
Member Author

This should work too, I implemented validation because it was pretty easy.

@teor2345 teor2345 changed the title Implement basic gateway RPC launch and piece getting Implement gateway RPC launch and piece getting Oct 21, 2024
nazar-pc
nazar-pc previously approved these changes Oct 21, 2024
Base automatically changed from gateway-dsn to main October 21, 2024 10:35
@teor2345 teor2345 dismissed nazar-pc’s stale review October 21, 2024 10:35

The base branch was changed.

@teor2345 teor2345 enabled auto-merge October 21, 2024 20:41
@teor2345 teor2345 requested a review from nazar-pc October 21, 2024 20:41
@teor2345 teor2345 added this pull request to the merge queue Oct 21, 2024
nazar-pc
nazar-pc previously approved these changes Oct 21, 2024
@teor2345 teor2345 removed this pull request from the merge queue due to a manual request Oct 21, 2024
@teor2345 teor2345 requested a review from NingLin-P as a code owner October 21, 2024 21:31
@teor2345 teor2345 enabled auto-merge October 21, 2024 21:31
@teor2345
Copy link
Member Author

This PR conflicted with #3156, so I merged that PR into it, and implemented the minor suggestions from #3137.

(I'll do the significant refactors in other PRs based on this one.)

@teor2345 teor2345 requested a review from nazar-pc October 21, 2024 21:32
@teor2345 teor2345 dismissed nazar-pc’s stale review October 22, 2024 09:38

The merge-base changed after approval.

nazar-pc
nazar-pc previously approved these changes Oct 22, 2024

// Fall back to the node's bootstrap nodes.
if bootstrap_nodes.is_empty() {
debug!(
dsn_bootstrap_nodes = ?farmer_app_info.dsn_bootstrap_nodes,
bootstrap_nodes = ?farmer_app_info.dsn_bootstrap_nodes,
Copy link
Member

Choose a reason for hiding this comment

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

I intentionally left it as dsn_bootstrap_nodes because it came from the node to distinguish from explicit option

nazar-pc
nazar-pc previously approved these changes Oct 22, 2024
@teor2345 teor2345 dismissed nazar-pc’s stale review October 22, 2024 09:55

The merge-base changed after approval.

nazar-pc
nazar-pc previously approved these changes Oct 22, 2024
@teor2345 teor2345 dismissed nazar-pc’s stale review October 22, 2024 12:55

The merge-base changed after approval.

@nazar-pc nazar-pc disabled auto-merge October 22, 2024 12:56
@nazar-pc nazar-pc merged commit 6f4ae0f into main Oct 22, 2024
10 checks passed
@nazar-pc nazar-pc deleted the gateway-fetch branch October 22, 2024 12:56
@nazar-pc
Copy link
Member

Some related to auto-merge broke here, I tried to approve it a few times and it didn't move forward, so I force-merged it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants