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/disable nodedata on halfpath #7906

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

asdacap
Copy link
Contributor

@asdacap asdacap commented Dec 13, 2024

  • Disable nodedata protocol on halfpath as it cannot serve it.
  • This prevent other nethermind node from trying.

Types of changes

What types of changes does your code introduce?

  • Optimization

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

  • Tested by logging at hello message.

@@ -11,6 +11,7 @@ public interface IWorldStateManager
IWorldState GlobalWorldState { get; }
IStateReader GlobalStateReader { get; }
IReadOnlyTrieStore TrieStore { get; }
bool SupportHashLookup { get; }
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if needed as we already expose TrieStore and it already kind-of exposes Scheme, so maybe extension method would suffice? Or default implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally, we should not expose triestore at all. Its just a bit.. un-nice at the moment.

@asdacap asdacap merged commit f2afa1b into master Dec 13, 2024
79 checks passed
@asdacap asdacap deleted the feature/disable-nodedata-on-halfpath branch December 13, 2024 12:19
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.

2 participants