Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs about block header fields #76

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/content/docs/en/technology/chain/blocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,24 @@ The block header in Scroll mirrors the structure of Ethereum's. However, certain
| Field | Description |
| ------------------- | ------------------------------------------------------------------ |
| `parentHash` | The hash of the parent block. |
| `uncleHash` | Always 0. |
| `coinbase` | Pre-deployed fee vault contract address `0x5300000000000000000000000000000000000005`. |
| `uncleHash` | Always `keccak256(rlp([]))`. |
| `coinbase` | Fees are collected to the pre-deployed fee vault contract address `0x5300000000000000000000000000000000000005`. In most cases, the RPC return field `"miner"` is the zero-address `0x0000000000000000000000000000000000000000`. |
| `stateRoot` | The root hash of the state trie. It is the Poseidon |
| `transactionsRoot ` | The hash of the transaction trie. |
| `receiptsRoot ` | The hash of the transaction receipts trie. |
| `logsBloom` | The data structure containing event logs |
| `difficulty` | Always 0. |
| `transactionsRoot ` | The root hash of the transaction trie. |
| `receiptsRoot ` | The root hash of the transaction receipts trie. |
| `logsBloom` | The data structure containing event logs. |
| `difficulty` | Always 1 or 2. |
| `number` | The block number. |
| `gasLimit` | The maximum gas allowed in the block. |
| `gasUsed` | The gas used in the block. |
| `timestamp` | The block time. |
| `extraData` | Arbitrary additional data. |
| `extraData` | Signature by the block's signer, followd by arbitrary additional data. |
| `mixHash` | Always 0. |
| `nonce` | Always 0. |
| `baseFee` | Currently empty in Scroll because we haven't enabled the EIP-1559. |

## Block Time

Block time refers to the interval between two consecutive blocks. In Scroll, the block time is set at 3s. A reduced block time elevates the user experience and augments the Scroll chain's scalability.

The 3 second block time is maintained on a best effort basis, it is not guaranteed or enforced by the protocol.