diff --git a/.github/workflows/localnet-test.yml b/.github/workflows/localnet-test.yml index 7b797a809..ec4de385c 100644 --- a/.github/workflows/localnet-test.yml +++ b/.github/workflows/localnet-test.yml @@ -39,7 +39,7 @@ jobs: run: docker compose -f ./e2e/docker-compose.yml build - name: "run localnet" - run: docker compose -f ./e2e/docker-compose.yml up -d + run: docker compose -f ./e2e/docker-compose.yml up - name: "kill an op-node after a minute" run: sleep 60 && docker compose -f ./e2e/docker-compose.yml down op-node diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml index 2193475c0..c1ba3de7c 100644 --- a/e2e/docker-compose.yml +++ b/e2e/docker-compose.yml @@ -131,7 +131,7 @@ services: BFG_POSTGRES_URI: "postgres://postgres@bfgd-postgres:5432/bfg?sslmode=disable" BFG_BTC_START_HEIGHT: "1" BFG_EXBTC_ADDRESS: "electrs:50001" - BFG_LOG_LEVEL: "INFO" + BFG_LOG_LEVEL: "TRACE" BFG_PUBLIC_ADDRESS: ":8383" BFG_PRIVATE_ADDRESS: ":8080" networks: diff --git a/service/bfg/bfg.go b/service/bfg/bfg.go index 04c83f1bb..9d86f61d9 100644 --- a/service/bfg/bfg.go +++ b/service/bfg/bfg.go @@ -630,10 +630,10 @@ func (s *Server) processBitcoinBlock(ctx context.Context, height uint64, failOnD err = s.db.BtcBlockInsert(ctx, &btcBlock) if err != nil { + log.Errorf("could not insert btc block: %s", err) + // XXX don't return err here so we keep counting up, need to be smarter if errors.Is(err, database.ErrDuplicate) { - log.Errorf("could not insert btc block: %s", err) - if failOnDuplicate { return err }