go-opera icon indicating copy to clipboard operation
go-opera copied to clipboard

why New block from index=4564026 point sync blockchain ,eventhough I downloaded the latest pruned snapshot ?

Open ai-chen2050 opened this issue 2 years ago • 8 comments

Describe the bug A clear and concise description of what the bug is. why New block from index=4564026 point sync blockchain ,eventhough I downloaded the latest pruned snapshot ?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

New block from the latest world state & syncing.

Screenshots

  • The startup shell is follow:
opera --cache 64000 --genesis /data/fantom/mainnet.g --datadir /data/fantom/  --maxpeers 500 --nousb --http --http.addr '0.0.0.0' --http.port 8545 --http.corsdomain "*" --http.vhosts "*" --ws --ws.addr '0.0.0.0' --ws.port 8546  --ws.origins '0.0.0.0' --http.api "eth,debug,net,admin,web3,personal,txpool,ftm,dag" --ws.api "eth,debug,net,admin,web3,personal,txpool,ftm,dag" 

If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

  • OS: [AWS Linux]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

ai-chen2050 avatar Jun 20 '22 05:06 ai-chen2050

@ai-chen2050 I think it's normal if you downloaded and used this genesis file mainnet-5577-pruned-mpt.g

Which genesis file did you use?

hadv avatar Jun 20 '22 08:06 hadv

I use the official given genesis file: wget https://opera.fantom.network/mainnet.g

  • where place download for mainnet-5577-pruned-mpt.g file? Thx

ai-chen2050 avatar Jun 20 '22 08:06 ai-chen2050

  • where place download for mainnet-5577-pruned-mpt.g file? Thx

You can download difference version of new genesis files from https://github.com/Fantom-foundation/lachesis_launch/blob/master/docs/genesis-files.md to use with the latest release of opera

hadv avatar Jun 20 '22 09:06 hadv

I download pruned snapshot from (Daily pruned snapshot) https://ftmbootstraps.ultimatenodes.io/, are you sure the right genesis file is mainnet-5577-pruned-mpt.g ? or mainnet-109331-pruned-mpt.g ? whether I can not pointed the genesis file by --genesis (omit --genesis flag)

image

ai-chen2050 avatar Jun 20 '22 09:06 ai-chen2050

I download pruned snapshot from (Daily pruned snapshot) https://ftmbootstraps.ultimatenodes.io/, are you sure the right genesis file is mainnet-5577-pruned-mpt.g ? or mainnet-109331-pruned-mpt.g ? whether I can not pointed the genesis file by --genesis (omit --genesis flag)

If you already downloaded the snapshot of datadir then I think you don't need --genesis anymore

hadv avatar Jun 20 '22 09:06 hadv

Downloading datadir archives isn't secure, as you have to trust that archive is correct. Such an archive may contain a mistake (accidentally or intentionally) In a case you're okay with pruned EVM, the fastest syncing mode is snapsync. Download mainnet-109331-no-mpt.g (58.3 GB) if you need full blocks history or mainnet-109331-no-history.g (16.3 KB) in a case if you're okay with blocks history only after block 37676547 Move or ease your current datadir, add --syncmode snap flag to enable snapsync, add --genesis flag with selected genesis file

uprendis avatar Jun 20 '22 09:06 uprendis

Downloading datadir archives isn't secure, as you have to trust that archive is correct. Such an archive may contain a mistake (accidentally or intentionally) In a case you're okay with pruned EVM, the fastest syncing mode is snapsync. Download mainnet-109331-no-mpt.g (58.3 GB) if you need full blocks history or mainnet-109331-no-history.g (16.3 KB) in a case if you're okay with blocks history only after block 37676547 Move or ease your current datadir, add --syncmode snap flag to enable snapsync, add --genesis flag with selected genesis file

some error happed, when I follow you steps.

Fatal: Failed to read genesis file: wrong version of genesis file, got=00020001, expected=00010001

ai-chen2050 avatar Jun 20 '22 10:06 ai-chen2050

Please update opera to v1.1.1-rc.1

uprendis avatar Jun 20 '22 10:06 uprendis

Hi @ai-chen2050 , is it still an issue?

quan8 avatar Aug 13 '22 19:08 quan8