Skip to content

Commit

Permalink
fix(protocol): revert removing proposedIn (being used by node/clien…
Browse files Browse the repository at this point in the history
…t) (#16644)

Co-authored-by: David <[email protected]>
  • Loading branch information
dantaik and davidtaikocha authored Apr 4, 2024
1 parent 2fe4695 commit 2c311e1
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 @@ -113,7 +113,7 @@ library TaikoData {
uint96 livenessBond;
uint64 blockId; // slot 3
uint64 proposedAt; // timestamp
uint64 __reserved1;
uint64 proposedIn; // L1 block number, required/used by node/client.
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 @@ -159,7 +159,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 2c311e1

Please sign in to comment.