feat(storage): make insert_block() operate with references (#20504)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
fig
2025-12-22 15:13:43 +00:00
committed by GitHub
parent ed7a5696b7
commit 96c77fd8b2
19 changed files with 98 additions and 81 deletions

View File

@@ -218,7 +218,7 @@ fn run_case(
.unwrap();
provider
.insert_block(genesis_block.clone())
.insert_block(&genesis_block)
.map_err(|err| Error::block_failed(0, Default::default(), err))?;
// Increment block number for receipts static file
@@ -249,7 +249,7 @@ fn run_case(
// Insert the block into the database
provider
.insert_block(block.clone())
.insert_block(block)
.map_err(|err| Error::block_failed(block_number, Default::default(), err))?;
// Commit static files, so we can query the headers for stateless execution below
provider