Introduce staged sync (#482)
* Introducing staged sync * Fix linter * Fix linter * Sync progress in the DB * Fix linter * Fix linter * Not to wake body and receipt downloaders in the header stage * Next stage * Fix tests * Fix linter * More on block bodies downloading * More on downloading bodes * Remove debug * Fix test compilation * Fix tests * Fix linter * Fix linter * Turn off the miner during staged sync * More fixes
Showing
- common/dbutils/bucket.go 3 additions, 0 deletionscommon/dbutils/bucket.go
- core/blockchain.go 192 additions, 126 deletionscore/blockchain.go
- core/headerchain.go 1 addition, 1 deletioncore/headerchain.go
- core/tx_pool.go 7 additions, 2 deletionscore/tx_pool.go
- eth/backend.go 25 additions, 12 deletionseth/backend.go
- eth/downloader/downloader.go 188 additions, 29 deletionseth/downloader/downloader.go
- eth/downloader/downloader_test.go 4 additions, 0 deletionseth/downloader/downloader_test.go
- eth/downloader/modes.go 29 additions, 14 deletionseth/downloader/modes.go
- eth/downloader/queue.go 27 additions, 3 deletionseth/downloader/queue.go
- eth/downloader/sync_stages.go 56 additions, 0 deletionseth/downloader/sync_stages.go
- eth/handler.go 25 additions, 5 deletionseth/handler.go
- eth/sync.go 1 addition, 1 deletioneth/sync.go
- miner/worker.go 1 addition, 1 deletionminer/worker.go
Loading
Please register or sign in to comment