Skip to content

grumble(on_seal_block): make &mut to avoid clone#71

Merged
soc1c merged 2 commits into
goerli:masterfrom
niklasad1:block-needless-clone
Mar 23, 2019
Merged

grumble(on_seal_block): make &mut to avoid clone#71
soc1c merged 2 commits into
goerli:masterfrom
niklasad1:block-needless-clone

Conversation

@niklasad1
Copy link
Copy Markdown

Fixes

Maybe make Engine::on_seal_block take a &mut of the block instead. This avoids a copy.

Originally posted by @sorpaas in https://github.com/paritytech/parity-ethereum/diffs

@niklasad1 niklasad1 force-pushed the block-needless-clone branch from 31f9d75 to b27dabb Compare March 22, 2019 07:25
@soc1c soc1c merged commit 10755f9 into goerli:master Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants