• Mark Tyneway's avatar
    op-node: safer genesis script · ac6c0e81
    Mark Tyneway authored
    Updates the `op-node` genesis gen script to prevent `nil` pointer
    access accidentally. Run the command like so:
    
    ```go
    go run op-node/cmd/main.go genesis l2 \
      --deploy-config $PWD/packages/contracts-bedrock/deploy-config/mainnet.json \
      --outfile.l2 l2.json \
      --outfile.rollup rollup.json \
      --l1-rpc $ETH_RPC_URL \
      --deployment-dir $PWD/packages/contracts-bedrock/deployments/mainnet
    ```
    
    When generating the genesis file, it is ok to leave the
    `l1StartingBlockTag` value as undefined, this script will select an
    appropriate value and then the value will end up inside of the rollup
    config under `.genesis.l1.hash` which can then be backported to
    the deploy config to make the script deterministic.
    ac6c0e81
Name
Last commit
Last update
..
chaincfg Loading commit data...
client Loading commit data...
cmd Loading commit data...
eth Loading commit data...
flags Loading commit data...
heartbeat Loading commit data...
http Loading commit data...
metrics Loading commit data...
node Loading commit data...
p2p Loading commit data...
rollup Loading commit data...
sources Loading commit data...
testlog Loading commit data...
testutils Loading commit data...
version Loading commit data...
withdrawals Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
service.go Loading commit data...