diff options
Diffstat (limited to 'dex/downloader')
-rw-r--r-- | dex/downloader/downloader.go | 1 | ||||
-rw-r--r-- | dex/downloader/fakepeer.go | 3 | ||||
-rw-r--r-- | dex/downloader/peer.go | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/dex/downloader/downloader.go b/dex/downloader/downloader.go index 3d3a78e18..e3960ea30 100644 --- a/dex/downloader/downloader.go +++ b/dex/downloader/downloader.go @@ -1403,7 +1403,6 @@ func (d *Downloader) processHeaders(origin uint64, pivot uint64, number uint64) // In case of header only syncing, validate the chunk immediately if d.mode == FastSync || d.mode == LightSync { - // TODO(sonic) update the gov state to make TSigVerify correct // Collect the yet unknown headers to mark them as uncertain unknown := make([]*types.Header, 0, len(headersWithGovState)) for _, header := range chunk { diff --git a/dex/downloader/fakepeer.go b/dex/downloader/fakepeer.go index f4ff9b517..e1c3070d2 100644 --- a/dex/downloader/fakepeer.go +++ b/dex/downloader/fakepeer.go @@ -89,7 +89,6 @@ func (p *FakePeer) RequestHeadersByHash(hash common.Hash, amount int, skip int, } } - // TODO(sonic): fix this var headersWithGovState []*types.HeaderWithGovState for _, h := range headers { headersWithGovState = append(headersWithGovState, @@ -122,7 +121,7 @@ func (p *FakePeer) RequestHeadersByNumber(number uint64, amount int, skip int, r } headers = append(headers, origin) } - // TODO(sonic): fix this + var headersWithGovState []*types.HeaderWithGovState for _, h := range headers { headersWithGovState = append(headersWithGovState, diff --git a/dex/downloader/peer.go b/dex/downloader/peer.go index e1c6960f1..df8ef0ee9 100644 --- a/dex/downloader/peer.go +++ b/dex/downloader/peer.go @@ -103,7 +103,6 @@ func (w *lightPeerWrapper) RequestHeadersByNumber(i uint64, amount int, skip int return w.peer.RequestHeadersByNumber(i, amount, skip, reverse, withGov) } func (w *lightPeerWrapper) RequestGovStateByHash(common.Hash) error { - // TODO(sonic): support this panic("RequestGovStateByHash not supported in light client mode sync") } func (w *lightPeerWrapper) DownloadBodies([]common.Hash) error { |