feat(stages): normalized sender recovery commits (#3013)

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Roman Krasiuk
2023-06-06 23:51:19 +03:00
committed by GitHub
parent 7eeecf0835
commit 0bf360e460
10 changed files with 132 additions and 70 deletions

View File

@ -178,13 +178,13 @@ impl From<BodiesConfig> for BodiesDownloaderBuilder {
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Serialize)]
#[serde(default)]
pub struct SenderRecoveryConfig {
/// The maximum number of blocks to process before committing progress to the database.
/// The maximum number of transactions to process before committing progress to the database.
pub commit_threshold: u64,
}
impl Default for SenderRecoveryConfig {
fn default() -> Self {
Self { commit_threshold: 5_000 }
Self { commit_threshold: 50_000 }
}
}