Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Jan 14, 2025
1 parent a9ed312 commit 790fe31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/localnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions service/bfg/bfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 790fe31

Please sign in to comment.