} Index::increment_statistic(&wtx, Statistic::Commits, 1)?; wtx.commit()?; let wtx = index.begin_write()?; log::debug!("creating savepoint at height {}", height); wtx.persistent_savepoint()?; Index::increment_statistic(&wtx, Statistic::Commits, 1)?; wtx.commit()?; } Ok(()) } }