-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(protocol): fix block timestamp check (#18759)
- Loading branch information
Showing
5 changed files
with
63 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ import "src/shared/based/LibSharedData.sol"; | |
/// @custom:security-contact [email protected] | ||
interface ITaikoInbox { | ||
struct BlockParams { | ||
// the max nubmer of transactions in this block. Note that if there are not enough | ||
// the max number of transactions in this block. Note that if there are not enough | ||
// transactions in calldata or blobs, the block will contains as many transactions as | ||
// possible. | ||
uint16 numTransactions; | ||
|
@@ -35,7 +35,7 @@ interface ITaikoInbox { | |
bytes32 parentMetaHash; | ||
uint64 anchorBlockId; | ||
bytes32 anchorInput; | ||
uint64 timestamp; | ||
uint64 lastBlockTimestamp; | ||
uint32 txListOffset; | ||
uint32 txListSize; | ||
// The index of the first blob in this batch. | ||
|
@@ -55,7 +55,7 @@ interface ITaikoInbox { | |
address coinbase; | ||
uint64 batchId; | ||
uint32 gasLimit; | ||
uint64 timestamp; | ||
uint64 lastBlockTimestamp; | ||
bytes32 parentMetaHash; | ||
address proposer; | ||
uint96 livenessBond; | ||
|
@@ -85,7 +85,7 @@ interface ITaikoInbox { | |
uint64 lastBlockId; | ||
uint192 _reserved3; | ||
uint64 batchId; // slot 3 | ||
uint64 timestamp; | ||
uint64 lastBlockTimestamp; | ||
uint64 anchorBlockId; | ||
uint24 nextTransitionId; | ||
uint8 reserved4; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters