diff --git a/crates/transaction-pool/src/traits.rs b/crates/transaction-pool/src/traits.rs index e01dc0946b4e..df0e77ec8c2c 100644 --- a/crates/transaction-pool/src/traits.rs +++ b/crates/transaction-pool/src/traits.rs @@ -31,11 +31,11 @@ use std::{ collections::{HashMap, HashSet}, fmt, future::Future, + hash::Hash, pin::Pin, sync::Arc, task::{Context, Poll}, }; -use std::hash::Hash; use tokio::sync::mpsc::Receiver; /// The `PeerId` type. @@ -742,6 +742,9 @@ impl CanonicalStateUpdate<'_> { pub fn number(&self) -> u64 { self.new_tip.number } + pub fn hash(&self) -> B256 { + self.new_tip.mix_hash + } /// Timestamp of the latest chain update pub fn timestamp(&self) -> u64 {