aboutsummaryrefslogtreecommitdiffstats
path: root/les/fetcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'les/fetcher.go')
-rw-r--r--les/fetcher.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/les/fetcher.go b/les/fetcher.go
index 353e91932..a294d00d5 100644
--- a/les/fetcher.go
+++ b/les/fetcher.go
@@ -24,6 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/light"
@@ -498,7 +499,7 @@ func (f *lightFetcher) processResponse(req fetchRequest, resp fetchResponse) boo
headers[int(req.amount)-1-i] = header
}
if _, err := f.chain.InsertHeaderChain(headers, 1); err != nil {
- if err == core.BlockFutureErr {
+ if err == consensus.ErrFutureBlock {
return true
}
log.Debug("Failed to insert header chain", "err", err)