Stop full sync at 97%, but send transactions at 100% (#4483)

This commit is contained in:
teor 2022-05-25 13:14:38 +10:00 committed by GitHub
parent e4ca6c358e
commit 97b9911c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -53,7 +53,7 @@ use common::{
sync::{
create_cached_database_height, sync_until, MempoolBehavior, LARGE_CHECKPOINT_TEST_HEIGHT,
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,
},
};
@ -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
true,
// Finish when we reach the chain tip
SYNC_FINISHED_REGEX,
SYNC_FINISHED_REGEX_TMP_STOP_EARLY,
)
} else {
tracing::info!(

View File

@ -39,10 +39,13 @@ pub const STOP_AT_HEIGHT_REGEX: &str = "stopping at configured height";
/// - we have synced all known checkpoints,
/// - the syncer has stopped downloading lots of blocks, and
/// - 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)
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.
///