Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for penumbra v0.81.x #21

Merged
merged 3 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Debug full plan and start / stop
  • Loading branch information
cronokirby committed Jan 23, 2025
commit a510f0d9fc1b039c94e3d94524eea50f2d582373
7 changes: 7 additions & 0 deletions src/penumbra.rs
Original file line number Diff line number Diff line change
@@ -152,6 +152,7 @@ impl RegenerationStep {
///
/// This also makes the resulting logic in terms of creating and destroying penumbra applications
/// easier, because we know the given lifecycle of a version of the penumbra logic.
#[derive(Debug)]
struct RegenerationPlan {
pub steps: Vec<(u64, RegenerationStep)>,
}
@@ -316,6 +317,12 @@ impl Regenerator {

async fn run_from(mut self, start: Option<u64>, stop: Option<u64>) -> anyhow::Result<()> {
let plan = RegenerationPlan::penumbra_1().truncate(start, stop);
tracing::info!(
"plan truncated between {:?}..={:?}: {:?}",
start,
stop,
plan
);
for (start, step) in plan.steps.into_iter() {
use RegenerationStep::*;
match step {