mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat(txpool) modify txpool guard to be for pipeline syncs only (#4075)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -49,6 +49,9 @@ pub trait NetworkInfo: Send + Sync {
|
||||
|
||||
/// Returns `true` if the network is undergoing sync.
|
||||
fn is_syncing(&self) -> bool;
|
||||
|
||||
/// Returns `true` when the node is undergoing the very first Pipeline sync.
|
||||
fn is_initially_syncing(&self) -> bool;
|
||||
}
|
||||
|
||||
/// Provides general purpose information about Peers in the network.
|
||||
|
||||
@ -45,6 +45,10 @@ impl NetworkInfo for NoopNetwork {
|
||||
fn is_syncing(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn is_initially_syncing(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl PeersInfo for NoopNetwork {
|
||||
|
||||
Reference in New Issue
Block a user