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:
prames
2023-08-09 11:40:38 -07:00
committed by GitHub
parent a8a2cfa7a3
commit fd7e28e786
5 changed files with 202 additions and 23 deletions

View File

@ -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.

View File

@ -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 {