Skip to content

Commit afe0182

Browse files
committed
Warn log adjustment after self review
1 parent 06249ef commit afe0182

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mithril-aggregator/src/database/repository/cardano_transaction_repository.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ impl TransactionStore for CardanoTransactionRepository {
213213
(_, None) => Ok(None),
214214
(None, Some(end)) => Ok(Some(0..(end + 1))),
215215
(Some(start), Some(end)) if end < start => {
216-
// To discuss : should we prune all block ranges from the DB to force recompute ?
217216
warn!(
218217
"Last computed block range is higher than the last transaction block number. \
219-
This should not happen. Did you forgot to prune the `block_range` table after pruning the\
220-
`cardano_tx` table ?";
218+
This should not happen. Did you forgot to prune the `block_range_root` table \
219+
after pruning the `cardano_tx` table ?";
221220
"start" => start, "end" => end
222221
);
223222
Ok(None)

mithril-signer/src/database/repository/cardano_transaction_repository.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ impl TransactionStore for CardanoTransactionRepository {
213213
(_, None) => Ok(None),
214214
(None, Some(end)) => Ok(Some(0..(end + 1))),
215215
(Some(start), Some(end)) if end < start => {
216-
// To discuss : should we prune all block ranges from the DB to force recompute ?
217216
warn!(
218217
"Last computed block range is higher than the last transaction block number. \
219-
This should not happen. Did you forgot to prune the `block_range` table after pruning the\
220-
`cardano_tx` table ?";
218+
This should not happen. Did you forgot to prune the `block_range_root` table \
219+
after pruning the `cardano_tx` table ?";
221220
"start" => start, "end" => end
222221
);
223222
Ok(None)

0 commit comments

Comments
 (0)