Skip to content

Commit

Permalink
fix: check fg error
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli authored and bap2pecs committed Sep 15, 2024
1 parent 597e0fc commit cbfe7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-node/rollup/finality/finalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package finality

import (
"context"
"errors"
"fmt"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -232,7 +232,7 @@ func (fi *Finalizer) tryFinalize() {
defer fi.mu.Unlock()

gadgetActivatedTimestamp, err := fi.babylonFinalityClient.QueryBtcStakingActivatedTimestamp()
if err != nil && !errors.Is(err, fgtypes.ErrBtcStakingNotActivated) {
if err != nil && !strings.Contains(err.Error(), fgtypes.ErrBtcStakingNotActivated.Error()) {
fi.emitter.Emit(rollup.CriticalErrorEvent{Err: fmt.Errorf("failed to query BTC staking activated timestamp: %w", err)})
return
}
Expand Down

0 comments on commit cbfe7c8

Please sign in to comment.