Skip to content

Commit

Permalink
the tx_interval should be between the first tx of from_cp up to the f…
Browse files Browse the repository at this point in the history
…irst tx of to_cp
  • Loading branch information
wlmyng committed Dec 13, 2024
1 parent 7ceb77a commit 5f740dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/sui-indexer-alt-framework/src/handlers/cp_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use anyhow::Result;
use diesel::prelude::*;
use diesel_async::RunQueryDsl;
use sui_field_count::FieldCount;
use sui_pg_db::{self as db};
use sui_pg_db::{self as db, Connection};
use sui_types::full_checkpoint_content::CheckpointData;

#[derive(Insertable, Selectable, Queryable, Debug, Clone, FieldCount)]
Expand Down Expand Up @@ -63,7 +63,7 @@ impl PrunableRange {

/// Inclusive start and exclusive end range of prunable txs.
pub fn tx_interval(&self) -> (u64, u64) {
(self.from.tx_lo as u64, self.to.tx_hi as u64)
(self.from.tx_lo as u64, self.to.tx_lo as u64)
}

/// Returns the epochs that contain the checkpoints in this range.
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-indexer-alt-framework/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use metrics::{IndexerMetrics, MetricsService};
use pipeline::{
concurrent::{self, ConcurrentConfig},
sequential::{self, SequentialConfig},
CommitterConfig, Processor,
Processor,
};
use sui_pg_db::{Db, DbArgs};
use task::graceful_shutdown;
Expand Down Expand Up @@ -376,7 +376,7 @@ impl Indexer {
);

if let Some(enabled_pipelines) = &mut self.enabled_pipelines {
if P::NAME != CpMapping::NAME && !enabled_pipelines.remove(P::NAME) {
if !enabled_pipelines.remove(P::NAME) {
info!(pipeline = P::NAME, "Skipping");
return Ok(None);
}
Expand Down

0 comments on commit 5f740dd

Please sign in to comment.