Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

dapps-fetcher: calculate keccak in-flight while reading the response #8294

Merged
merged 3 commits into from
Apr 3, 2018

Conversation

sorpaas
Copy link
Collaborator

@sorpaas sorpaas commented Apr 3, 2018

This fixes a TODO item in dapps-fetcher.

A new function, called keccak_buffer_and_write is added. This allows attaching another BufWrite. When reading the input, it writes it to BufWrite as well. The original function keccak_buffer is then just setting the parameter to a Sink.

@parity-cla-bot
Copy link

It looks like @sorpaas signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

LGTM, I would consider a shorter name though, perhaps keccak_pipe?

@sorpaas
Copy link
Collaborator Author

sorpaas commented Apr 3, 2018

Renamed to keccak_pipe. The test currently fails. I'm figuring out what might be wrong..

@5chdn 5chdn added this to the 1.11 milestone Apr 3, 2018
@5chdn 5chdn added A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. M4-core ⛓ Core client code / Rust. labels Apr 3, 2018
@5chdn 5chdn merged commit 5e7d42e into openethereum:master Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants