Skip to content

Commit

Permalink
retry if failed with transaction outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Mar 25, 2024
1 parent 009e502 commit 0fad9cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blox/blox.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ func (p *Blox) Start(ctx context.Context) error {
if strings.Contains(err.Error(), "AccountAlreadyStorer") {
// Log the occurrence of the specific error but do not continue
log.Warnw("Attempt to store with an account that is already a storer", "err", err, "p.topicName", p.topicName, "storedLinks", storedLinks)
} else if strings.Contains(err.Error(), "Transaction is outdated") {
continue
} else {
// For any other error, log and continue
log.Errorw("Error calling HandleManifestBatchStore", "err", err, "p.topicName", p.topicName, "storedLinks", storedLinks)
Expand Down

0 comments on commit 0fad9cb

Please sign in to comment.