Skip to content

core: adjust txindexer cutoff for ancient pruning#3

Merged
yysung1123 merged 1 commit intoindexer-v1.6.1-betafrom
indexer-v1.6.1-beta-txindexer
Oct 17, 2025
Merged

core: adjust txindexer cutoff for ancient pruning#3
yysung1123 merged 1 commit intoindexer-v1.6.1-betafrom
indexer-v1.6.1-beta-txindexer

Conversation

@yysung1123
Copy link
Copy Markdown

No description provided.

@yysung1123 yysung1123 requested a review from markya0616 October 15, 2025 03:23
Comment thread core/txindexer.go
length := head - indexer.cutoff + 1 // all available chain for indexing
cutoff := indexer.cutoff
// If the database has a higher cutoff (due to ancient pruning), adjust the cutoff accordingly.
if dbTail, err := indexer.db.Tail(); err == nil {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this change.
But I think we can also set cutoff in L71 — that way the log will be printed, and we can see what the cutoff is changed to.

@yysung1123 yysung1123 force-pushed the indexer-v1.6.1-beta-txindexer branch from c8737f3 to b45acad Compare October 16, 2025 23:20
@yysung1123 yysung1123 merged commit d23c241 into indexer-v1.6.1-beta Oct 17, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants