smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
318 stars 106 forks source link

download bedrock data very slow #84

Closed 0xwhatly closed 1 year ago

0xwhatly commented 1 year ago

Env:

But the data download is very slow logs:

Bedrock node needs to be initialized...
Initializing via download...
Fetching download link...
Downloading bedrock.tar...
Download Progress: 0.00%
Download Progress: 0.00%
Download Progress: 0.00%
Download Progress: 0.01%
Download Progress: 0.01%
Download Progress: 0.01%
^[Download Progress: 0.01%
Download Progress: 0.01%
Download Progress: 0.01%
Download Progress: 0.01%
kchojn commented 1 year ago

@0xwhatly, my solution was:

echo "Downloading bedrock.tar..."

download $BEDROCK_TAR_DOWNLOAD $BEDROCK_TAR_PATH



the whole thing took less than 3h
0xwhatly commented 1 year ago

Use you solution,i have download data,but when i start docker,the simple-optimism-node-op-geth-1 have error: Failed to register the Ethereum service: ancient chain segments already extracted, please set --datadir.ancient to the correct path log image

0xwhatly commented 1 year ago

In the end, I solved it. thanks @kchojn ,the bedrock data url has change,we can query by here the new url is https://op.datadirs.xyz/mainnet-bedrock.tar.

kchojn commented 1 year ago

Great! Sorry @0xwhatly, I noticed the message only when you tagged me. My link was from the official documentation: https://community.optimism.io/docs/useful-tools/networks/#, and it worked for me 😅