Skip to content

Conversation

@Bilogweb3
Copy link
Contributor

  1. ParentHash was incorrectly set to current block hash instead of actual parent
  2. Replaced unsafe (ulong) cast with safe ToUInt64() method for timestamps

The From(L1BlockInfo) method was setting ParentHash = blockInfo.BlockHash which makes no sense - a block can't be its own parent. Changed to Hash256.Zero since L1BlockInfo doesn't contain parent hash data.

Also fixed the TODO about unsafe casting by using the same ToUInt64(null) pattern already used elsewhere in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant