Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy containers are now run by default #122

Closed
timjrobinson opened this issue Feb 7, 2024 · 3 comments
Closed

Legacy containers are now run by default #122

timjrobinson opened this issue Feb 7, 2024 · 3 comments

Comments

@timjrobinson
Copy link

timjrobinson commented Feb 7, 2024

Previously there were two profiles - current and legacy.

In #117 these profiles were removed, but the legacy containers were kept

Was this intended? I assumed when removing the profiles you actually wanted to remove legacy so only the current containers were run. As now the container l2geth runs which isn't needed to run the stack (it's only needed for pre-bedrock Optimism right?)

@Chomtana
Copy link
Collaborator

Chomtana commented Feb 7, 2024

It should automatically exit in case it's not needed (New OP chains or OP_GETH__HISTORICAL_RPC is configured).

if [ "$NETWORK_NAME" != "op-mainnet" ]; then
  echo "Stopping l2geth for a non op-mainnet chain"
  exit
fi

if [ -n "${OP_GETH__HISTORICAL_RPC+x}" ]; then
  echo "Stopping l2geth for using an external historical RPC"
  exit
fi

l2geth still needs to run if you want to do eth_call, estimate gas and debug trace on a pred-bedrock block of the Optimism Mainnet or Optimism Goerli Testnet as per docs: https://docs.optimism.io/builders/node-operators/management/configuration#legacy-geth.

@Chomtana
Copy link
Collaborator

Chomtana commented Feb 8, 2024

Since I think l2geth is rarely used except for some kind of archival indexing use case. I have removed the profile to simplify the command.

Although, I can't think of a better way to conditionally start l2geth except let's it start and stop it from the entrypoint.

Let me know if you have better solution.

@timjrobinson
Copy link
Author

Ah ok that makes sense that it auto exits, sounds fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants