Blocks
Wischain Block Structure
A block in the Wischain network is a collection of transactions that builds upon the previous block, creating a continuous and secure chain of data.
Block Header
The block header in Wischain is designed to resemble that of Ethereum, but it includes specific modifications to better fit the Layer 2 (L2) environment. The following table outlines the key fields in the Wischain block header and their descriptions:
Field
Description
parentHash
The hash of the preceding block in the chain.
uncleHash
Always set to keccak256(rlp([]))
, indicating no uncles in the context of Wischain.
coinbase
Fees are collected into a pre-deployed fee vault contract at the address 0x.....
. Typically, the RPC return field "miner" reflects the zero address 0x0000000000000000000000000000000000000000
.
stateRoot
The root hash of the state trie, which employs the Poseidon hashing algorithm.
transactionsRoot
The root hash of the transaction trie, encapsulating all transactions within the block.
receiptsRoot
The root hash of the transaction receipts trie, providing proof of transaction execution.
logsBloom
A data structure that contains logs related to events emitted during transaction execution.
difficulty
Fixed at either 1 or 2, representing the consensus difficulty for block generation.
number
The sequential number assigned to the block within the blockchain.
gasLimit
The maximum amount of gas that can be used in the block, influencing transaction processing limits.
gasUsed
The total gas consumed by all transactions included in the block.
timestamp
The time at which the block was created, providing a chronological record of the blockchain.
extraData
Contains a signature from the block’s signer, along with any additional arbitrary data.
mixHash
Always set to 0, as it is not utilized in the context of Wischain.
nonce
Always set to 0, as this field is not relevant for the proof-of-stake consensus mechanism employed by Wischain.
baseFee
Currently empty in Wischain as EIP-1559 has not yet been implemented.
Block Time
Block time refers to the duration between the creation of two consecutive blocks. In Wischain, this interval is targeted at 0.4 -2 seconds. A shorter block time enhances user experience and significantly improves the scalability of the Wischain network.
While the 3-second block time is maintained on a best-effort basis, it is important to note that this interval is not strictly enforced by the protocol. Variations may occur depending on network conditions and the overall load on the system.
Conclusion
The Wischain block structure is specifically engineered to optimize Layer 2 functionality while maintaining compatibility with Ethereum principles. By adjusting key elements such as the block header fields and implementing a rapid block time, Wischain aims to deliver a more efficient and user-friendly blockchain experience.
Last updated