format code again

This commit is contained in:
Nguyen Ba Tam 2018-08-24 17:36:29 +07:00
parent e6ae9f1360
commit f164501885
2 changed files with 6 additions and 6 deletions

View file

@ -27,9 +27,12 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/mclock" "github.com/ethereum/go-ethereum/common/mclock"
"github.com/ethereum/go-ethereum/consensus" "github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/posv"
contractValidator "github.com/ethereum/go-ethereum/contracts/validator/contract"
"github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/core/vm"
@ -44,9 +47,6 @@ import (
"github.com/ethereum/go-ethereum/trie" "github.com/ethereum/go-ethereum/trie"
"github.com/hashicorp/golang-lru" "github.com/hashicorp/golang-lru"
"gopkg.in/karalabe/cookiejar.v2/collections/prque" "gopkg.in/karalabe/cookiejar.v2/collections/prque"
"github.com/ethereum/go-ethereum/consensus/posv"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
contractValidator "github.com/ethereum/go-ethereum/contracts/validator/contract"
) )
var ( var (

View file

@ -1329,7 +1329,7 @@ func (d *Downloader) processFullSyncContent() error {
length := len(results) length := len(results)
start := int(results[0].Header.Number.Uint64() % epoch) start := int(results[0].Header.Number.Uint64() % epoch)
end := int(epoch - gap - uint64(start)) end := int(epoch - gap - uint64(start))
if (end < 0) { if end < 0 {
end = end + int(epoch) end = end + int(epoch)
} }
start = 0 start = 0
@ -1353,7 +1353,7 @@ func (d *Downloader) processFullSyncContent() error {
} }
start = end + 1 start = end + 1
end = end + int(epoch) end = end + int(epoch)
if (start >= length) { if start >= length {
break break
} }
} }