aboutsummaryrefslogtreecommitdiffstats
path: root/lds/fetcher.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-05-09 16:51:02 +0800
committerSonic <sonic@dexon.org>2019-05-09 16:51:02 +0800
commit31f99d2c7da15226627ea71acd8bd55093c6e7f8 (patch)
tree4781a6017fd3d40a4f7abe9e066081ea663c45f2 /lds/fetcher.go
parent5709a57dcf41cc3cb1c09575dd02081e3f4ad496 (diff)
downloaddexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar.gz
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar.bz2
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar.lz
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar.xz
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.tar.zst
dexon-31f99d2c7da15226627ea71acd8bd55093c6e7f8.zip
lds: implement request headers with gov state
Diffstat (limited to 'lds/fetcher.go')
-rw-r--r--lds/fetcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lds/fetcher.go b/lds/fetcher.go
index b58918a08..f1a260abe 100644
--- a/lds/fetcher.go
+++ b/lds/fetcher.go
@@ -498,7 +498,7 @@ func (f *lightFetcher) nextRequest() (*distReq, uint64, bool) {
time.Sleep(hardRequestTimeout)
f.timeoutChn <- reqID
}()
- return func() { p.RequestHeadersByHash(reqID, cost, bestHash, int(bestAmount), 0, true) }
+ return func() { p.RequestHeadersByHash(reqID, cost, bestHash, int(bestAmount), 0, true, true) }
},
}
}