mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
format code again
This commit is contained in:
parent
e6ae9f1360
commit
f164501885
2 changed files with 6 additions and 6 deletions
|
|
@ -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 (
|
||||||
|
|
@ -698,7 +698,7 @@ func (bc *BlockChain) procFutureBlocks() {
|
||||||
type WriteStatus byte
|
type WriteStatus byte
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NonStatTy WriteStatus = iota
|
NonStatTy WriteStatus = iota
|
||||||
CanonStatTy
|
CanonStatTy
|
||||||
SideStatTy
|
SideStatTy
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue