Skip to content

Commit

Permalink
fix(protocol): revert a change to maintain taiko-geth compatibility (#…
Browse files Browse the repository at this point in the history
…18331)

Co-authored-by: David <[email protected]>
  • Loading branch information
dantaik and davidtaikocha authored Oct 29, 2024
1 parent 7436bae commit 9d18d59
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/protocol/contracts/layer1/based/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,12 @@ library LibProposing {
local.params.coinbase = local.params.proposer;
}

unchecked {
if (local.params.anchorBlockId == 0) {
local.params.anchorBlockId = uint64(block.number - 1);
}
if (!local.postFork || local.params.anchorBlockId == 0) {
local.params.anchorBlockId = uint64(block.number - 1);
}

if (local.params.timestamp == 0) {
local.params.timestamp = uint64(block.timestamp);
}
if (!local.postFork || local.params.timestamp == 0) {
local.params.timestamp = uint64(block.timestamp);
}

// Verify params against the parent block.
Expand Down

0 comments on commit 9d18d59

Please sign in to comment.