fix(sync): headers stage progress (#467)

* fix(sync): headers stage progress

* add tests to head/tip and split suite

* fix(sync): headers stage progress

* add tests to head/tip and split suite

* fix local tip and address comments

* rename error
This commit is contained in:
Roman Krasiuk
2022-12-15 20:41:32 +02:00
committed by GitHub
parent 789dc3bc87
commit 2b0f5316f9
8 changed files with 187 additions and 98 deletions

View File

@@ -67,11 +67,7 @@ impl Downloader for TestHeaderDownloader {
#[async_trait::async_trait]
impl HeaderDownloader for TestHeaderDownloader {
fn stream(
&self,
_head: SealedHeader,
_forkchoice: ForkchoiceState,
) -> DownloadStream<'_, SealedHeader> {
fn stream(&self, _head: SealedHeader, _tip: H256) -> DownloadStream<'_, SealedHeader> {
Box::pin(self.create_download())
}
}