Skip to content

Block model changes #157

@obscuren

Description

@obscuren
  • Block is now the RLP encoding of
[
    Header,
    [tx0, tx1, ..., txN],
    [uncle0, uncle1, ... uncleN]
]

Tx = transaction and not full receipt

  • Header is now RLP encoding of
[
    parentHash,
    sha3Uncles,    //NOTE: no longer '' for no uncles.
    coinbaseAddress,
    stateRoot,
    transactionsRoot,
    receiptsRoot,
    logsBloom,
    difficulty,
    number,
    minGasPrice,
    gasLimit,
    gasUsed,
    timestamp,
    extraData,
    nonce
]
  • receiptsRoot is the root of the trie formed by:
{
    0: receipt(tx0),
    1: receipt(tx1),
    ...
    N: receipt(txN)
}
  • receipt(tx) is defined as the RLP encoding of:
[
    postStateRoot,
    gasUsed,
    txLogsBloom, ('' if no logs)
    [log0, log1, ..., logN]
]

for bloom filter see #156

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions