提交 2683aac9 编写于 作者: O obscuren

Make sure we're not mining on an invalid TS

上级 c20d04ca
......@@ -207,6 +207,9 @@ func (self *worker) commitNewWork() {
defer self.uncleMu.Unlock()
block := self.chain.NewBlock(self.coinbase)
if block.Time() == self.chain.CurrentBlock().Time() {
block.Header().Time++
}
self.current = env(block, self.eth)
for _, ancestor := range self.chain.GetAncestors(block, 7) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册