-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify Granite protocol upgrade (#321)
* Specify Granite protocol upgrade * Update specs/protocol/granite/derivation.md Co-authored-by: clabby <[email protected]> * clarify activation timestamp for channel frames --------- Co-authored-by: clabby <[email protected]> Co-authored-by: Mark Tyneway <[email protected]>
- Loading branch information
1 parent
b025e76
commit 8268de6
Showing
4 changed files
with
44 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Granite L2 Chain Derivation Changes | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
**Table of Contents** | ||
|
||
- [Protocol Parameter Changes](#protocol-parameter-changes) | ||
- [Reduce Channel Timeout](#reduce-channel-timeout) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
## Protocol Parameter Changes | ||
|
||
The following table gives an overview of the changes in parameters. | ||
|
||
| Parameter | Pre-Granite (default) value | Granite value | Notes | | ||
| --------- | ------------------------- | ----------- | ----- | | ||
| `CHANNEL_TIMEOUT` | 300 | 50 | Protocol Constant is reduced. | | ||
|
||
## Reduce Channel Timeout | ||
|
||
With Granite, the `CHANNEL_TIMEOUT` is reduced from 300 to 50 L1 Blocks. | ||
The new rule activation timestamp is based on the blocktime of the L1 block that the channel frame is included. |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# L2 Execution Engine | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
**Table of Contents** | ||
|
||
- [EVM Changes](#evm-changes) | ||
- [`bn256Pairing` precompile input restriction](#bn256pairing-precompile-input-restriction) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
## EVM Changes | ||
|
||
### `bn256Pairing` precompile input restriction | ||
|
||
The `bn256Pairing` precompile execution has additional validation on its input. | ||
The precompile reverts if its input is larger than `112687` bytes. | ||
This is the input size that consumes approximately 20 M gas given the latest `bn256Pairing` gas schedule on L2. |
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 was deleted.
Oops, something went wrong.