From 0b7022f1ba75e6d0f5fe5d5d883fe2eb19ed0197 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Thu, 12 Dec 2024 21:18:05 +0700 Subject: [PATCH] bet --- crates/transaction-pool/src/traits.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {