Skip to content

Commit

Permalink
feat(protocol): remove and clear proposedIn from TaikoData.Block (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Apr 4, 2024
1 parent 08034a1 commit 511c18d
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 proposedIn; // L1 block number
uint64 __reserved1;
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 @@ -158,7 +158,7 @@ library LibProposing {
livenessBond: _config.livenessBond,
blockId: b.numBlocks,
proposedAt: meta_.timestamp,
proposedIn: uint64(block.number),
__reserved1: 0,
// 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 511c18d

Please sign in to comment.