Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mindcarver committed Aug 4, 2021
1 parent 354a71a commit 76124e1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions theory_knowledge/ethereum/block结构.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
```go
type Header struct {
ParentHash common.Hash // 前一个的区块哈希
UncleHash common.Hash // 挖出这个块的矿工地址,因为挖出块所奖励的ETH就会发放到这个地址
Coinbase common.Address `json:"miner" gencodec:"required"`
Root common.Hash // 状态树的根节点哈希
TxHash common.Hash // 交易树的根哈希,由本区块所有交易的交易哈希算出
ReceiptHash common.Hash //收据树的哈希
Bloom Bloom // 布隆过滤器,快速定位日志是否在这个区块中
Difficulty *big.Int // 当前工作量证明(Pow)算法的复杂度
Number *big.Int // 区块号
GasLimit uint64 // 每个区块Gas的消耗上限
GasUsed uint64 // 当前区块所有交易使用的Gas之和
Time uint64 // 区块产生的时间戳
Extra []byte
MixDigest common.Hash // 挖矿得到的Pow算法证明的摘要,也就是挖矿的工作量证明
Nonce BlockNonce // 挖矿找到的满足条件的值

// BaseFee was added by EIP-1559 and is ignored in legacy headers.
BaseFee *big.Int `json:"baseFeePerGas" rlp:"optional"`
}
```





> https://ethbook.abyteahead.com/ch4/transroot.html
Binary file added theory_knowledge/ethereum/eth_yellow_paper.pdf
Binary file not shown.

0 comments on commit 76124e1

Please sign in to comment.