Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

NodeCodec partials should just be impl Iterator<Item=u8> #1573

Open
gnunicorn opened this issue Jan 25, 2019 · 0 comments
Open

NodeCodec partials should just be impl Iterator<Item=u8> #1573

gnunicorn opened this issue Jan 25, 2019 · 0 comments
Labels
J0-enhancement An additional feature request.
Milestone

Comments

@gnunicorn
Copy link
Contributor

Needs refactoring here

// FIXME: refactor this so that `partial` isn't already encoded with HPE. Should just be an `impl Iterator<Item=u8>`.
fn leaf_node(partial: &[u8], value: &[u8]) -> Vec<u8> {

and here

// FIXME: refactor this so that `partial` isn't already encoded with HPE. Should just be an `impl Iterator<Item=u8>`.
fn ext_node(partial: &[u8], child: ChildReference<H::Out>) -> Vec<u8> {

@gnunicorn gnunicorn added the J0-enhancement An additional feature request. label Jan 25, 2019
@gnunicorn gnunicorn added this to the As-and-when milestone Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

1 participant