[WIP] Integrate header download with stage 1 (saving headers to the database) (#1330)
* move locking to the hd object itself, create ready channel * Fix lint * More integration * Fix lint * Connect to processing * Set hd.files at recovery * Serialise processSegment * Fix lint * Not prepend filesDir * Write to the database * Fix lint * Set up genesis block * Fix hard coded tips * Fix chainbreak false alarm * Recover from DB * Skip non-header records * Not initialise if recovered from DB * Fix lint
Showing
- cmd/headers/check/check.go 1 addition, 0 deletionscmd/headers/check/check.go
- cmd/headers/commands/download.go 5 additions, 1 deletioncmd/headers/commands/download.go
- cmd/headers/commands/root.go 64 additions, 3 deletionscmd/headers/commands/root.go
- cmd/headers/download/downloader.go 26 additions, 29 deletionscmd/headers/download/downloader.go
- turbo/stages/headerdownload/forward.go 186 additions, 0 deletionsturbo/stages/headerdownload/forward.go
- turbo/stages/headerdownload/header_algos.go 263 additions, 101 deletionsturbo/stages/headerdownload/header_algos.go
- turbo/stages/headerdownload/header_data_struct.go 13 additions, 1 deletionturbo/stages/headerdownload/header_data_struct.go
- turbo/stages/headerdownload/header_test.go 4 additions, 4 deletionsturbo/stages/headerdownload/header_test.go
- turbo/stages/stageloop.go 32 additions, 0 deletionsturbo/stages/stageloop.go
Loading
Please register or sign in to comment