Open rickiey opened 3 years ago
After magik6k Fix fallback chainstore #6003
lotus version 1.7.0-dev+mainnet+git.b54b1303f
After magik6k Fix fallback chainstore #6003
The error is suggesting you dont have the state. Are you reimporting a snapshot on a clear datastore? If not - you need to make sure that the epoch of the last block is no later than the epoch of the first block the snapshot contains.Or if there isn't much historic state accesses, LOTUS_ENABLE_CHAINSTORE_FALLBACK=1 should work
I have removed datastore/chain, and reimporting https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/complete_chain_with_finality_stateroots_latest.car; It is normal in v1.5.3, An error occurred in v1.6.0: https://github.com/filecoin-project/lotus/issues/5975, magik6k fixed it: https://github.com/filecoin-project/lotus/pull/6003, Then when I re-imported an error occurred: block not found
I use v1.9.0rc1 to build lotus, and start with LOTUS_ENABLE_CHAINSTORE_FALLBACK=1 env. I got 'block not found' error too. I want to know if the lotus node will pull missing state/receipts from the network with that env. And if true, why it doesn't work?
v1.10.1 Still fail
When I set LOTUS_ENABLE_CHAINSTORE_FALLBACK=1 and then start lotus daemon:
An error occurred when I query some historical data:
{\"code\": 1, \"msg\"\": load state tree: failed to load state tree: failed to load hamt node: blockstore: block not found}"}