Skip to content

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

Merged
brilliant-lx merged 2 commits intobnb-chain:developfrom
weiihann:v1.3.1-beta-txlookup
Nov 25, 2023
Merged

cmd/utils: exit process if txlookuplimit flag is set#2000
brilliant-lx merged 2 commits intobnb-chain:developfrom
weiihann:v1.3.1-beta-txlookup

Conversation

@weiihann
Copy link
Copy Markdown
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.

@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
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