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: fix stream body read #2934

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

driftluo
Copy link
Collaborator

HTTP body is a stream, it can't be read all by once.

We need to use streaming to read it completely, otherwise, the miner will not be able to obtain the block template correctly when the transaction volume is large.

@driftluo driftluo requested a review from a team as a code owner August 11, 2021 01:46
miner/src/client.rs Outdated Show resolved Hide resolved
@driftluo
Copy link
Collaborator Author

bors r=zhangsoledad,quake

@bors
Copy link
Contributor

bors bot commented Aug 11, 2021

Build succeeded:

@bors bors bot merged commit b810a77 into nervosnetwork:develop Aug 11, 2021
@driftluo driftluo deleted the fix-miner-stream-body-read branch August 11, 2021 05:16
@doitian doitian mentioned this pull request Aug 23, 2021
3 tasks
@doitian doitian mentioned this pull request Sep 3, 2021
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