mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
Make sure we're not mining on an invalid TS
This commit is contained in:
parent
c20d04ca67
commit
2683aac9b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user