Skip to content

Commit

Permalink
Consider mirroring "staking data invalid" error non-fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
mboben committed Sep 27, 2023
1 parent c6f3890 commit b99ce00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions indexer/cronjob/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ func (c *mirrorCronJob) mirrorTx(in *mirrorTxInput) error {
return nil
}

if strings.Contains(err.Error(), "staking data invalid") {
logger.Info("staking data invalid for tx %s", *in.tx.TxID)
return nil
}

if strings.Contains(err.Error(), "Max node ids exceeded") {
logger.Info("Max node ids exceeded for tx %s", *in.tx.TxID)
return nil
Expand Down

0 comments on commit b99ce00

Please sign in to comment.