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

fix(sync): removing state from cache #506

Merged
merged 2 commits into from Jun 13, 2023

Conversation

vlasfama
Copy link
Contributor

@vlasfama vlasfama commented Jun 12, 2023

Description

This PR removes the state instance from the cache in the sync package.
Additionally, the block data is now directly passed to the block_response message without parsing the block, which is expected to improve the performance of the node when processing the block_request messages.

@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #506 (155cb37) into main (fd4204a) will decrease coverage by 0.01%.
The diff coverage is 91.30%.

@@            Coverage Diff             @@
##             main     #506      +/-   ##
==========================================
- Coverage   82.83%   82.82%   -0.01%     
==========================================
  Files         154      154              
  Lines        7289     7285       -4     
==========================================
- Hits         6038     6034       -4     
  Misses        965      965              
  Partials      286      286              

cmd/daemon/start.go Outdated Show resolved Hide resolved
@b00f b00f merged commit 040c176 into pactus-project:main Jun 13, 2023
13 checks passed
@b00f b00f changed the title fix: removing state from cache fix(sync): removing state from cache Jun 17, 2023
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

2 participants