Block Model
An introduction and overview of the VeChainThor blockchain block model.
Last updated
Was this helpful?
An introduction and overview of the VeChainThor blockchain block model.
Last updated
Was this helpful?
VeChainThor defines a in Golang as:
Fields within the headerBody
, , are defined as:
ParentID
- the ID of the parent block.
Timestamp
- the block time
GasLimit
- the maximum amount of gas that all transactions inside the block are allowed to consume
Beneficiary
- the address assigned by the block generator to receive reward (in VTHO)
GasUsed
- the actual amount of gas used within the block
TxsRoot
- root hash of the transaction in the payload
StateRoot
- root hash for the global state after applying changes in this block
ReceiptsRoot
- hash of the transaction receipts trie
Signature
- signature of block builder
The block ID (thor.Bytes32
) can be computed as:
where is the block number stored as a uint32
and the operation that discards the first four bytes.
TotalScore
- the accumulated witness number of the chain branch headed by the block. See for more detail.