mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Improve eth_getLogs performance for latest block (#6305)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
committed by
GitHub
parent
2a10306e3b
commit
d3d994cedd
@@ -1,10 +1,16 @@
|
||||
use crate::{BlockNumber, B256};
|
||||
use crate::{BlockNumHash, BlockNumber, B256};
|
||||
|
||||
/// Current status of the blockchain's head.
|
||||
#[derive(Default, Clone, Debug, Eq, PartialEq)]
|
||||
#[derive(Default, Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct ChainInfo {
|
||||
/// The block hash of the highest fully synced block.
|
||||
pub best_hash: B256,
|
||||
/// The block number of the highest fully synced block.
|
||||
pub best_number: BlockNumber,
|
||||
}
|
||||
|
||||
impl From<ChainInfo> for BlockNumHash {
|
||||
fn from(value: ChainInfo) -> Self {
|
||||
BlockNumHash { number: value.best_number, hash: value.best_hash }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user