Skip to content

Commit

Permalink
Don't even clone header
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed Dec 31, 2024
1 parent 39d1c9d commit 003e30d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private struct BlockState(BlockCachePreWarmer preWarmer, Block block, Hash256 st
public Block Block = block;
public Hash256 StateRoot = stateRoot;
public IReleaseSpec Spec = spec;
public BlockHeader BlockHeader = block.Header.Clone();
public BlockHeader BlockHeader => Block.Header;
}
}

0 comments on commit 003e30d

Please sign in to comment.