Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(protocol): fix bug in getLatestSyncedHeader on TaikoL1 #13042

Merged
merged 7 commits into from
Jan 25, 2023

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Jan 24, 2023

No description provided.

@@ -242,14 +242,14 @@ contract TaikoL1 is EssentialContract, IHeaderSync, TaikoEvents {
function getSyncedHeader(
uint256 number
) public view override returns (bytes32 header) {
header = state.getL2BlockHash(number);
require(header != 0, "L1:number");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not check 0 return value (same behavior on TaikoL2) and rely on caller to verify that.

@dantaik dantaik changed the title fix getLatestSyncedHeader on TaikoL1 fix(protocol): fix bug in getLatestSyncedHeader on TaikoL1 Jan 24, 2023
@dantaik dantaik marked this pull request as ready for review January 24, 2023 22:32
@dantaik dantaik merged commit a56c4ea into proto_fix Jan 25, 2023
@dantaik dantaik deleted the proto_fix_2 branch January 25, 2023 02:00
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