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

debug_traceTransaction returns 'required historical state unavailable' error after upgrading Bor from v1.4.1 to v1.5.5 #1431

Open
pengin7384 opened this issue Feb 3, 2025 · 0 comments
Assignees

Comments

@pengin7384
Copy link
Contributor

System information

Bor client version: v1.5.5

Heimdall client version: 1.2.0

OS & Version: Linux

Environment: Polygon Mainnet

Type of node: bor full

Overview of the problem

I am running a Bor full node and using the --cache.triesinmemory flag to keep the state for 3600 blocks, allowing me to call the debug_traceTransaction RPC beyond the 128-block range. This worked fine in Bor v1.4.1.

However, after upgrading to Bor v1.5.5, now receive the following error when querying beyond 128 blocks:

required historical state unavailable (reexec=128)

Could you please check if there are any changes in Bor v1.5.5 that might be causing this issue?
Below is the Bor startup command I am using. Note that the same command worked correctly on v1.4.1.
Additionally, my config.toml file only contains trusted node settings

bor server  --datadir /mnt/data
              --port 20020 --config
              /mnt/data/bor/config.toml --ipcpath /mnt/data/bor/bor.ipc --http
              --http.addr '0.0.0.0' --http.vhosts '*' --http.port 8545
              --http.api 'eth,net,web3,bor,debug,admin' --ws --ws.port 8546
              --ws.addr 0.0.0.0 --ws.origins '*'
              --ws.api='eth,net,web3,bor,debug,admin' --syncmode 'full' --chain
              'mainnet' --rpc.batchlimit 10000 --miner.gasprice '30000000000'
              --miner.gaslimit '30000000' --txpool.nolocals
              --txpool.accountslots 16 --txpool.globalslots 1310720
              --txpool.accountqueue 64 --txpool.globalqueue 1310720
              --txpool.pricelimit '30000000000' --txpool.lifetime '1h30m0s'
              --txlookuplimit 0 --gpo.ignoreprice '30000000000'
              --cache.preimages --cache 15360 --maxpeers 2000 --snapshot=false
              --cache.triesinmemory 3600 --db.engine=leveldb --state.scheme=hash
              --gcmode=full

Reproduction Steps

  1. Start bor full node using the --cache.triesinmemory=3600 flag.
  2. Make calls debug_traceTransaction RPC for transactions within the range of 128 to 3600 blocks.
  3. required historical state unavailable (reexec=128) message appears.

Let me know if you need any additional details. Thanks!

@manav2401 manav2401 self-assigned this Feb 4, 2025
@lucca30 lucca30 assigned lucca30 and unassigned manav2401 Feb 6, 2025
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

No branches or pull requests

3 participants