OpenBlock::new take IntoIterator instead of mutable ref to Iterator (#10480)

This commit is contained in:
Marek Kotewicz
2019-03-15 15:43:54 +01:00
committed by GitHub
parent a574df3132
commit fb461659c7
9 changed files with 32 additions and 32 deletions

View File

@@ -2321,7 +2321,7 @@ impl PrepareOpenBlock for Client {
gas_range_target,
extra_data,
is_epoch_begin,
&mut chain.ancestry_with_metadata_iter(best_header.hash()),
chain.ancestry_with_metadata_iter(best_header.hash()),
)?;
// Add uncles

View File

@@ -416,7 +416,7 @@ impl PrepareOpenBlock for TestBlockChainClient {
gas_range_target,
extra_data,
false,
&mut Vec::new().into_iter(),
None,
)?;
// TODO [todr] Override timestamp for predictability
open_block.set_timestamp(*self.latest_block_timestamp.read());