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

avoid unnecessary recompression in block protocol #3598

Merged
merged 5 commits into from
May 5, 2022

Conversation

arnetheduck
Copy link
Member

Blocks can be sent straight from compressed data sources

@github-actions
Copy link

github-actions bot commented Apr 15, 2022

Unit Test Results

     12 files  ±0     834 suites  ±0   56m 53s ⏱️ + 7m 59s
1 686 tests ±0  1 638 ✔️ ±0    48 💤 ±0  0 ±0 
9 825 runs  ±0  9 713 ✔️ ±0  112 💤 ±0  0 ±0 

Results for commit ca04b9a. ± Comparison against base commit 0d5bbbc.

♻️ This comment has been updated with latest results.

beacon_chain/networking/eth2_network.nim Outdated Show resolved Hide resolved
peer.updateRequestQuota(blockResponseCost)
peer.awaitNonNegativeRequestQuota()

await response.writeRawBytes(bytes, []) # phase0 bytes
await response.writeBytesSZ(uncompressedLen, bytes, []) # phase0
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
await response.writeBytesSZ(uncompressedLen, bytes, []) # phase0
await response.writeBytesSZ(uncompressedLen, bytes, []) # phase0 bytes

(above at line 284, the comment was not deleted. I guess it got removed here unintentionally)

Blocks can be sent straight from compressed data sources
@arnetheduck arnetheduck enabled auto-merge (squash) May 5, 2022 09:18
@arnetheduck arnetheduck disabled auto-merge May 5, 2022 09:18
@arnetheduck arnetheduck enabled auto-merge (squash) May 5, 2022 10:15
@arnetheduck arnetheduck merged commit 138c401 into unstable May 5, 2022
@arnetheduck arnetheduck deleted the no-recompress branch May 5, 2022 11:00
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