fix(cli): commit on stage run unwind (#3129)

This commit is contained in:
Roman Krasiuk
2023-06-13 20:08:02 +03:00
committed by GitHub
parent c928f2c183
commit 225e05267b

View File

@ -230,6 +230,11 @@ impl Command {
while unwind.checkpoint.block_number > self.from {
let unwind_output = unwind_stage.unwind(&mut provider_rw, unwind).await?;
unwind.checkpoint = unwind_output.checkpoint;
if self.commit {
provider_rw.commit()?;
provider_rw = shareable_db.provider_rw().map_err(PipelineError::Interface)?;
}
}
}