perf: remove redundant ommers sealing (#2386)

This commit is contained in:
Roman Krasiuk
2023-04-25 15:53:16 +03:00
committed by GitHub
parent 21ebfee461
commit b4d69e68dc
11 changed files with 18 additions and 48 deletions

View File

@@ -125,7 +125,7 @@ pub fn random_block(
}
.seal_slow(),
body: transactions,
ommers: ommers.into_iter().map(Header::seal_slow).collect(),
ommers,
withdrawals: None,
}
}