Skip to content

Commit 2902dbf

Browse files
committed
Reajust rescan offset from 2 to 1 immutable
1 parent 8931a0a commit 2902dbf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mithril-aggregator/src/dependency_injection/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,8 @@ impl DependenciesBuilder {
10841084
self.get_transaction_parser().await?,
10851085
self.get_transaction_store().await?,
10861086
&self.configuration.db_directory,
1087-
// Rescan the last two immutables when importing transactions
1088-
Some(2),
1087+
// Rescan the last immutable when importing transactions, it may have been partially imported
1088+
Some(1),
10891089
self.get_logger().await?,
10901090
));
10911091
let cardano_transactions_builder = Arc::new(CardanoTransactionsSignableBuilder::new(

mithril-aggregator/src/services/cardano_transactions_importer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl CardanoTransactionsImporter {
4040
/// Constructor
4141
///
4242
/// About `rescan_offset`: if Some(x) the importer will be asked to rescan the previous 'x'
43-
/// immutables starting from the highest immutable known in the store.
43+
/// immutables starting after the highest immutable known in the store.
4444
/// This is useful when one of the last immutable was not full scanned.
4545
pub fn new(
4646
transaction_parser: Arc<dyn TransactionParser>,

mithril-signer/src/cardano_transactions_importer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl CardanoTransactionsImporter {
4040
/// Constructor
4141
///
4242
/// About `rescan_offset`: if Some(x) the importer will be asked to rescan the previous 'x'
43-
/// immutables starting from the highest immutable known in the store.
43+
/// immutables starting after the highest immutable known in the store.
4444
/// This is useful when one of the last immutable was not full scanned.
4545
pub fn new(
4646
transaction_parser: Arc<dyn TransactionParser>,

mithril-signer/src/runtime/signer_services.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ impl<'a> ServiceBuilder for ProductionServiceBuilder<'a> {
280280
transaction_parser,
281281
transaction_store,
282282
&self.config.db_directory,
283-
// Rescan the last two immutables when importing transactions
284-
Some(2),
283+
// Rescan the last immutable when importing transactions, it may have been partially imported
284+
Some(1),
285285
slog_scope::logger(),
286286
);
287287
let cardano_transactions_builder = Arc::new(CardanoTransactionsSignableBuilder::new(

0 commit comments

Comments
 (0)