Stop full sync at 97%, but send transactions at 100% (#4483)
This commit is contained in:
parent
e4ca6c358e
commit
97b9911c7d
|
@ -53,7 +53,7 @@ use common::{
|
||||||
sync::{
|
sync::{
|
||||||
create_cached_database_height, sync_until, MempoolBehavior, LARGE_CHECKPOINT_TEST_HEIGHT,
|
create_cached_database_height, sync_until, MempoolBehavior, LARGE_CHECKPOINT_TEST_HEIGHT,
|
||||||
LARGE_CHECKPOINT_TIMEOUT, MEDIUM_CHECKPOINT_TEST_HEIGHT, STOP_AT_HEIGHT_REGEX,
|
LARGE_CHECKPOINT_TIMEOUT, MEDIUM_CHECKPOINT_TEST_HEIGHT, STOP_AT_HEIGHT_REGEX,
|
||||||
STOP_ON_LOAD_TIMEOUT, SYNC_FINISHED_REGEX, TINY_CHECKPOINT_TEST_HEIGHT,
|
STOP_ON_LOAD_TIMEOUT, SYNC_FINISHED_REGEX_TMP_STOP_EARLY, TINY_CHECKPOINT_TEST_HEIGHT,
|
||||||
TINY_CHECKPOINT_TIMEOUT,
|
TINY_CHECKPOINT_TIMEOUT,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -692,7 +692,7 @@ fn full_sync_test(network: Network, timeout_argument_name: &str) -> Result<()> {
|
||||||
// Use the checkpoints to sync quickly, then do full validation until the chain tip
|
// Use the checkpoints to sync quickly, then do full validation until the chain tip
|
||||||
true,
|
true,
|
||||||
// Finish when we reach the chain tip
|
// Finish when we reach the chain tip
|
||||||
SYNC_FINISHED_REGEX,
|
SYNC_FINISHED_REGEX_TMP_STOP_EARLY,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
tracing::info!(
|
tracing::info!(
|
||||||
|
|
|
@ -39,10 +39,13 @@ pub const STOP_AT_HEIGHT_REGEX: &str = "stopping at configured height";
|
||||||
/// - we have synced all known checkpoints,
|
/// - we have synced all known checkpoints,
|
||||||
/// - the syncer has stopped downloading lots of blocks, and
|
/// - the syncer has stopped downloading lots of blocks, and
|
||||||
/// - we are regularly downloading some blocks via the syncer or block gossip.
|
/// - we are regularly downloading some blocks via the syncer or block gossip.
|
||||||
|
pub const SYNC_FINISHED_REGEX: &str = "estimated progress to chain tip sync_percent=100";
|
||||||
|
|
||||||
|
/// Temporary workaround for slow syncs - stop at 97%.
|
||||||
///
|
///
|
||||||
/// Temporary workaround for slow syncs - stop at 99.5%.
|
|
||||||
/// TODO: revert this change (#4456)
|
/// TODO: revert this change (#4456)
|
||||||
pub const SYNC_FINISHED_REGEX: &str = "estimated progress to chain tip sync_percent=99";
|
pub const SYNC_FINISHED_REGEX_TMP_STOP_EARLY: &str =
|
||||||
|
"estimated progress to chain tip sync_percent=97";
|
||||||
|
|
||||||
/// The maximum amount of time Zebra should take to reload after shutting down.
|
/// The maximum amount of time Zebra should take to reload after shutting down.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue