Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Dec 12, 2024
1 parent cdc18fa commit 0b7022f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/transaction-pool/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0b7022f

Please sign in to comment.