batch-submitter-service docker container enters infinite error loop
When I try to make all steps in CONTRIBUTING.md, I am facing with an issue. Here is the steps I follow git clone [email protected]:ethereum-optimism/optimism.git
cd optimism
yarn install
nvm use
yarn clean
yarn build
cd ops
export COMPOSE_DOCKER_CLI_BUILD=1 # these environment variables significantly speed up build time
export DOCKER_BUILDKIT=1
docker-compose build
When I complete the above steps, I don't get any error and it completes successfully.
Then, I run this command:
docker-compose up
I get this error loop from batch-submitter-service:

Also, I just wonder how can I reach user interface. Which port should I use?
Hello, I got same errors.
This error happens when there is no tx to be made in L2. In the code, you can see where this occurs:
https://github.com/ethereum-optimism/optimism/blob/74c63d3c626d9a81c55911f2998e519fedbdc093/batch-submitter/drivers/sequencer/encoding.go#L220-L228
I would suggest to add a new error check for this case in the bss-core service
https://github.com/ethereum-optimism/optimism/blob/74c63d3c626d9a81c55911f2998e519fedbdc093/bss-core/service.go#L184-L191
Something like:
if err != nil {
if err.Error() == "no new tx" {
log.Debug(name+"no new tx detected")
continue
}
log.Error(name+" unable to craft batch tx",
err", err)
continue