bnb-chain / bsc-snapshots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PBSS snapshot does not work with --tries-verify-mode=none

web3dev2023 opened this issue · comments

Hi, I downloaded the latest pbss pebble snapshot for mainnet and ran the following on Windows (bsc client version v1.3.7):
C:\Users\administrator\geth_windows.exe --config C:\Users\administrator\config.toml --datadir c:/bsc --ws --rpc.allow-unprotected-txs --history.transactions 0 --state.scheme path --tries-verify-mode none --db.engine pebble

And then I got the error
Fatal: incompatible state scheme, stored: path, config: hash, CLI: path

Is there a fix to it?

you can check here bnb-chain/bsc#2092

Thanks!
I added

[Eth]
StateScheme = "path"

to config.toml
and it works.

Sorry, there is another problem.
I can use --tries-verify-mode none without any pruning. However, there will be another error after ancient pruning.

I first synced with --syncmode full --pruneancient to reduce the size of the database. Then I removed these 2 flags and used --tries-verify-mode none , but get following error:

Fatal: Could not open database: open c:\bsc\chaindata\ancient\chain\headers.cidx: The system cannot find the file specified.

Seems someone else is having the same problem bnb-chain/bsc#2110 (comment)

commented

Sorry, there is another problem. I can use --tries-verify-mode none without any pruning. However, there will be another error after ancient pruning.

I first synced with --syncmode full --pruneancient to reduce the size of the database. Then I removed these 2 flags and used --tries-verify-mode none , but get following error:

Fatal: Could not open database: open c:\bsc\chaindata\ancient\chain\headers.cidx: The system cannot find the file specified.

Seems someone else is having the same problem bnb-chain/bsc#2110 (comment)

colse, move to: bnb-chain/bsc#2110