... | ... | @@ -5,22 +5,22 @@ El trie `Root` contiene el estado actual del blockchain. Si hay cambios en el *w |
|
|
Como esta definido en `core/block.go`, un *block header* (cabeza de bloque) tiene el siguiente formato:
|
|
|
|
|
|
| **Bytes** | **Nombre en [Yellow Paper](https://ethereum.github.io/yellowpaper/paper.pdf)** | **Tipo** | **Nombre en geth** |
|
|
|
|-------:|--------------|----------------|------------------|
|
|
|
| 32 | ParentHash | common.Hash | parentHash |
|
|
|
| 32 | UncleHash | common.Hash | sha3Uncles |
|
|
|
| 20 | Coinbase | common.Address | miner |
|
|
|
| 32 | Root | common.Hash | stateRoot |
|
|
|
| 32 | TxHash | common.Hash | transactionsRoot |
|
|
|
| 32 | ReceiptHash | common.Hash | receiptsRoot |
|
|
|
|256 | Bloom | [256]byte | logsBloom |
|
|
|
| 8 | Difficulty | int64 | difficulty |
|
|
|
| 8 | Number | int64 | number |
|
|
|
| 8 | GasLimit | uint64 | gasLimit |
|
|
|
| 8 | GasUsed | uint64 | gasUsed |
|
|
|
| 8 | Time | int64 | timestamp |
|
|
|
| 97[^1] | [Extra](extra)| []byte | extraData |
|
|
|
| 32 | MixDigest | common.Hash | mixHash |
|
|
|
| 8 | [Nonce](nonce)| [8]byte | nonce |
|
|
|
| -----: | ------------- | ---------- | ---------------- |
|
|
|
| 32 | ParentHash | [32]byte | parentHash |
|
|
|
| 32 | UncleHash | [32]byte | sha3Uncles |
|
|
|
| 20 | Coinbase | [20]byte | miner |
|
|
|
| 32 | Root | [32]byte | stateRoot |
|
|
|
| 32 | TxHash | [32]byte | transactionsRoot |
|
|
|
| 32 | ReceiptHash | [32]byte | receiptsRoot |
|
|
|
|256 | Bloom | [256]byte | logsBloom |
|
|
|
| 8 | Difficulty | int64 | difficulty |
|
|
|
| 8 | Number | int64 | number |
|
|
|
| 8 | GasLimit | uint64 | gasLimit |
|
|
|
| 8 | GasUsed | uint64 | gasUsed |
|
|
|
| 8 | Time | int64 | timestamp |
|
|
|
| 97[^1] | [Extra](extra)| []byte | extraData |
|
|
|
| 32 | MixDigest | [32]byte | mixHash |
|
|
|
| 8 | [Nonce](nonce)| [8]byte | nonce |
|
|
|
|
|
|
Estos **613 bytes** se comprime un poco, pero un header siempre parece tener 600+ bytes.
|
|
|
|
... | ... | |