Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新标题格式 #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pow一致性算法.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##eth POW分析
## eth POW分析
### 共识引擎描述
在CPU挖矿部分,CpuAgent的mine函数,执行挖矿操作的时候调用了self.engine.Seal函数。这里的engine是就是共识引擎。Seal为其中很重要的一个接口。它实现了nonce值的寻找和hash的计算。并且该函数是保证共识并且不能伪造的一个重要的函数。
再PoW共识算法中,Seal函数实现了工作证明。该部分源码在consensus/ethhash下。
Expand Down Expand Up @@ -621,4 +621,4 @@ func hashimotoLight(size uint64, cache []uint32, hash []byte, nonce uint64) ([]b
}
return hashimoto(hash, nonce, size, lookup)
}
```
```