Skip to content

Commit

Permalink
chore(protocol): add comment about signals in anchor (#18901)
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
  • Loading branch information
dantaik and davidtaikocha authored Feb 10, 2025
1 parent 320ef05 commit c4d4d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/protocol/contracts/layer1/based/TaikoInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ abstract contract TaikoInbox is EssentialContract, ITaikoInbox, ITaiko {
anchorBlockHash: blockhash(anchorBlockId),
anchorInput: params.anchorInput,
baseFeeConfig: config.baseFeeConfig,
//
// Signals are applied only to the first block of the batch.
// For the remaining blocks, an empty list shall be used by the anchorV3 function.
signalSlots: params.signalSlots
});

Expand Down
2 changes: 2 additions & 0 deletions packages/protocol/contracts/layer2/based/TaikoAnchor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ contract TaikoAnchor is EssentialContract, IBlockHashProvider, TaikoAnchorDeprec

/// @notice Anchors the latest L1 block details to L2 for cross-layer
/// message verification.
/// @dev The gas limit for this transaction must be set to 1,000,000 gas.
/// @dev This function can be called freely as the golden touch private key is publicly known,
/// but the Taiko node guarantees the first transaction of each block is always this anchor
/// transaction, and any subsequent calls will revert with L2_PUBLIC_INPUT_HASH_MISMATCH.
Expand Down Expand Up @@ -173,6 +174,7 @@ contract TaikoAnchor is EssentialContract, IBlockHashProvider, TaikoAnchorDeprec

/// @notice Anchors the latest L1 block details to L2 for cross-layer
/// message verification.
/// @dev The gas limit for this transaction must be set to 250,000 gas.
/// @dev This function can be called freely as the golden touch private key is publicly known,
/// but the Taiko node guarantees the first transaction of each block is always this anchor
/// transaction, and any subsequent calls will revert with L2_PUBLIC_INPUT_HASH_MISMATCH.
Expand Down

0 comments on commit c4d4d46

Please sign in to comment.