Skip to content

node, sync: use new Execution API client/server #2013

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

Merged
merged 8 commits into from
May 27, 2024

Conversation

canepat
Copy link
Member

@canepat canepat commented May 10, 2024

This PR changes the node and sync modules to use the client/server abstractions built around the execution interface. Specifically:

  • create Execution API DirectClient and Server (disabled by config for now) in node module facade
  • migrate usage of Execution API Client in sync module
  • bridge Execution API DirectClient from node to sync facade in silkworm main

Extras

  • extract sample block generation as common fixture in unit tests
  • improve readability by adding some type alias
  • handle some more error conditions in PoS sync

This PR depends on #2004

This PR does not remove the old in-process-only implementation yet, another PR will follow

@canepat canepat requested a review from JacekGlen May 10, 2024 19:04
@canepat canepat changed the title Sync use execution api node, sync: use new Execution API client/server May 10, 2024
@canepat canepat marked this pull request as ready for review May 10, 2024 19:12
@canepat canepat marked this pull request as draft May 10, 2024 19:13
Base automatically changed from execution_api_grpc_client_server to master May 15, 2024 09:26
@canepat canepat force-pushed the sync_use_execution_api branch from 409d6bf to c6cf804 Compare May 17, 2024 15:21
@canepat canepat marked this pull request as ready for review May 24, 2024 15:53
Copy link
Contributor

@JacekGlen JacekGlen left a comment

Choose a reason for hiding this comment

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

Looks good!

@JacekGlen JacekGlen merged commit 2cf8e17 into master May 27, 2024
5 checks passed
@JacekGlen JacekGlen deleted the sync_use_execution_api branch May 27, 2024 08:23
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