mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Merge remote-tracking branch 'ethereum/master' into develop
Conflicts: cmd/gexp/main.go
This commit is contained in:
commit
8b50fbc849
2 changed files with 3 additions and 4 deletions
|
|
@ -47,12 +47,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
||||||
ClientIdentifier = "Gexp"
|
ClientIdentifier = "Gexp"
|
||||||
Version = "1.1.1"
|
Version = "1.1.2"
|
||||||
VersionMajor = 1
|
VersionMajor = 1
|
||||||
VersionMinor = 1
|
VersionMinor = 1
|
||||||
VersionPatch = 1
|
VersionPatch = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -434,7 +434,7 @@ func (self *worker) commitNewWork() {
|
||||||
tstart := time.Now()
|
tstart := time.Now()
|
||||||
parent := self.chain.CurrentBlock()
|
parent := self.chain.CurrentBlock()
|
||||||
tstamp := tstart.Unix()
|
tstamp := tstart.Unix()
|
||||||
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) != 1 {
|
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) >= 0 {
|
||||||
tstamp = parent.Time().Int64() + 1
|
tstamp = parent.Time().Int64() + 1
|
||||||
}
|
}
|
||||||
// this will ensure we're not going off too far in the future
|
// this will ensure we're not going off too far in the future
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue