Skip to content

Commit

Permalink
Revert "feat(protocol): remove and clear proposedIn from TaikoData.…
Browse files Browse the repository at this point in the history
…Block (#16630)"

This reverts commit 511c18d.
  • Loading branch information
dantaik committed Apr 4, 2024
1 parent 99177bb commit 6cf3f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/TaikoData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ library TaikoData {
uint96 livenessBond;
uint64 blockId; // slot 3
uint64 proposedAt; // timestamp
uint64 __reserved1;
uint64 proposedIn; // L1 block number
uint32 nextTransitionId;
uint32 verifiedTransitionId;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ library LibProposing {
livenessBond: _config.livenessBond,
blockId: b.numBlocks,
proposedAt: meta_.timestamp,
__reserved1: 0,
proposedIn: uint64(block.number),
// For a new block, the next transition ID is always 1, not 0.
nextTransitionId: 1,
// For unverified block, its verifiedTransitionId is always 0.
Expand Down

0 comments on commit 6cf3f64

Please sign in to comment.