smartcontracts / simple-optimism-node

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

Snapshot download is inefficient #90

Closed feld closed 8 months ago

feld commented 1 year ago

Currently the bedrock snapshot download runs the download and extraction in separate stages which is very slow and inefficient especially on platforms like EC2. It would be nice if this was reworked to simply pipe the download from wget through | tar -C /geth -xvf - so the download and extraction is in one shot, then you don't have to waste time reading and extracting the 400GB you just downloaded...

Chomtana commented 8 months ago

Hi, my fork has fixed this issue and uses an official snapshot.

Check out https://github.com/Chomtana/simple-optimism-node/tree/main/scripts

Pull request https://github.com/smartcontracts/simple-optimism-node/pull/97