chore: use alloy's blockwithparent (#13052)

This commit is contained in:
Matthias Seitz
2024-12-02 11:09:24 +01:00
committed by GitHub
parent 04f8c58485
commit ae3b3ddf42
5 changed files with 7 additions and 22 deletions

View File

@ -1225,11 +1225,10 @@ mod tests {
use super::*;
use crate::headers::test_utils::child_header;
use alloy_consensus::Header;
use alloy_eips::BlockNumHash;
use alloy_eips::{eip1898::BlockWithParent, BlockNumHash};
use assert_matches::assert_matches;
use reth_consensus::test_utils::TestConsensus;
use reth_network_p2p::test_utils::TestHeadersClient;
use reth_primitives_traits::BlockWithParent;
/// Tests that `replace_number` works the same way as `Option::replace`
#[test]

View File

@ -1,12 +1,11 @@
use super::error::HeadersDownloaderResult;
use crate::error::{DownloadError, DownloadResult};
use alloy_consensus::BlockHeader;
use alloy_eips::BlockHashOrNumber;
use alloy_eips::{eip1898::BlockWithParent, BlockHashOrNumber};
use alloy_primitives::B256;
use futures::Stream;
use reth_consensus::HeaderValidator;
use reth_primitives::SealedHeader;
use reth_primitives_traits::BlockWithParent;
use std::fmt::Debug;
/// A downloader capable of fetching and yielding block headers.