ethereum-optimism / developers

This repository is to serve as a place where builders on every level of the OP Stack can come to collaborate.
Creative Commons Zero v1.0 Universal
73 stars 44 forks source link

how to get an archive node with binary setup? #540

Closed Curu24 closed 2 months ago

Curu24 commented 3 months ago

hi, I'd like to run an Optimism archive RPC node using binary and this is a setup that I figured out from the docs and binary flag descriptions. I also consulted on the Optimism discord, but after syncing this setup it takes only ~550G disk space which doesn't seem right for an archive node.

op-node systemd service:

ExecStart=/usr/local/bin/op-node \
        --l1 http://xx.xx.xx.xx:8545 \
        --l1.beacon http://xx.xx.xx.xx:5052 \
        --l2 ws://localhost:8551 \
        --l2.jwt-secret /var/lib/optimism/engine-auth-jwt \
        --p2p.advertise.ip xx.xx.xx.xx \
        --p2p.priv.path /var/lib/optimism/opnode_p2p_priv.txt \
        --p2p.peerstore.path /var/lib/optimism/opnode_peerstore_db \
        --p2p.discovery.path /var/lib/optimism/opnode_discovery_db \
        --network op-mainnet \
        --syncmode execution-layer \

op-geth systemd service:

ExecStart=/usr/local/bin/op-geth \
        --datadir /var/lib/optimism \
        --op-network op-mainnet \
        --port 30303 \
        --state.scheme hash \
        --gcmode archive \
        --syncmode full \
        --http \
        --http.corsdomain "*" \
        --http.vhosts "*" \
        --http.addr 0.0.0.0 \
        --http.port 8545 \
        --http.api web3,debug,eth,net,engine \
        --authrpc.addr 0.0.0.0 \
        --authrpc.port 8551 \
        --authrpc.vhosts "*" \
        --authrpc.jwtsecret /var/lib/optimism/engine-auth-jwt \
        --ws \
        --ws.addr 0.0.0.0 \
        --ws.port 8546 \
        --ws.origins "*" \
        --ws.api debug,eth,net,engine \
        --metrics \
        --metrics.addr 0.0.0.0 \
        --metrics.port 6060 \
        --rollup.sequencerhttp https://mainnet-sequencer.optimism.io \
        --rollup.halt major \

(as an L1 RPC I'm using my own setup with Erigon and Lighthouse clients in archive mode). I'd be glad for any hints. thank you