feat: extend engine syncing with single block downloads (#2626)

This commit is contained in:
Matthias Seitz
2023-05-12 15:02:45 +02:00
committed by GitHub
parent 4070bd1731
commit e34cdc4e0d
13 changed files with 527 additions and 278 deletions

View File

@ -67,6 +67,11 @@ impl<Client> FetchFullBlockFuture<Client>
where
Client: BodiesClient + HeadersClient,
{
/// Returns the hash of the block being requested.
pub fn hash(&self) -> &H256 {
&self.hash
}
/// If the header request is already complete, this returns the block number
pub fn block_number(&self) -> Option<u64> {
self.header.as_ref().map(|h| h.number)