Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/utils: exit process if txlookuplimit flag is set #2000

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

weiihann
Copy link
Contributor

@weiihann weiihann commented Nov 24, 2023

Description

Crash node and exit process if --txlookuplimit flag is set instead of history.transactions.

Rationale

If users still use --txlookuplimit which is deprecated instead of history.transactions, then it maintains the default number of blocks to maintain the transaction index for. This may cause the node to unindex transactions, which would affect the performance.

Refer to #1999 for more details.

Example

N/A

Changes

  • Wait 3 seconds before os.Exit(1), this ensures the log message is printed before exiting.

cmd/utils/flags.go Outdated Show resolved Hide resolved
@weiihann weiihann force-pushed the v1.3.1-beta-txlookup branch from 8aa663f to bb6e91f Compare November 24, 2023 03:42
@weiihann weiihann force-pushed the v1.3.1-beta-txlookup branch from bb6e91f to a430e2e Compare November 24, 2023 04:08
buddh0
buddh0 previously approved these changes Nov 24, 2023
@brilliant-lx brilliant-lx merged commit c92b6ce into bnb-chain:develop Nov 25, 2023
5 checks passed
weiihann added a commit to weiihann/bsc that referenced this pull request Dec 5, 2023
@weiihann weiihann deleted the v1.3.1-beta-txlookup branch March 13, 2024 05:36
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.

4 participants