docs(txpool): fix docs for cancun activation check (#7128)

This commit is contained in:
Roman Krasiuk
2024-03-13 10:30:49 +01:00
committed by GitHub
parent b05f8a90fd
commit bf18bf50d5

View File

@@ -657,12 +657,12 @@ pub(crate) struct ForkTracker {
}
impl ForkTracker {
/// Returns true if the Shanghai fork is activated.
/// Returns `true` if Shanghai fork is activated.
pub(crate) fn is_shanghai_activated(&self) -> bool {
self.shanghai.load(std::sync::atomic::Ordering::Relaxed)
}
/// Returns true if the Shanghai fork is activated.
/// Returns `true` if Cancun fork is activated.
pub(crate) fn is_cancun_activated(&self) -> bool {
self.cancun.load(std::sync::atomic::Ordering::Relaxed)
}