mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
always create downloader
This commit is contained in:
parent
8b8b66352a
commit
dceecbd541
1 changed files with 3 additions and 2 deletions
|
|
@ -181,8 +181,9 @@ func newHandler(config *handlerConfig) (*handler, error) {
|
|||
return nil, errors.New("snap sync not supported with snapshots disabled")
|
||||
}
|
||||
// SYSCOIN Construct the downloader (long sync)
|
||||
if h.chain.GetChainConfig().SyscoinBlock == nil {
|
||||
h.downloader = downloader.New(config.Database, h.eventMux, h.chain, h.removePeer, h.enableSyncedFeatures)
|
||||
h.downloader = downloader.New(config.Database, h.eventMux, h.chain, h.removePeer, h.enableSyncedFeatures)
|
||||
if h.chain.GetChainConfig().SyscoinBlock != nil {
|
||||
h.downloader.Terminate()
|
||||
}
|
||||
|
||||
fetchTx := func(peer string, hashes []common.Hash) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue