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

add sharedStorage to the prefetcher of miner #818

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

flywukong
Copy link
Contributor

@flywukong flywukong commented Mar 28, 2022

Description

Since the miner has prefetched data , this PR make the miner main process and the prefetch process share a shared_pool with the stateDB. By this way , the prefetch data that can be directly fished to the L1.5 layer and make miner prefetch faster

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

miner/worker.go Outdated Show resolved Hide resolved
Copy link
Contributor

@forcodedancing forcodedancing left a comment

Choose a reason for hiding this comment

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

please help to refine the description of this pr

@unclezoro unclezoro merged commit 4f793ed into bnb-chain:develop Mar 29, 2022
unclezoro pushed a commit that referenced this pull request Mar 29, 2022
* add sharedStorage to the prefetcher of miner

* fix miner prefetcher copy
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.

None yet

5 participants