From 0fad9cb26c310b4d2f57aecc3084776cd28d67f0 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Mon, 25 Mar 2024 17:49:25 -0400 Subject: [PATCH] retry if failed with transaction outdated --- blox/blox.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blox/blox.go b/blox/blox.go index aced04b..19ae714 100644 --- a/blox/blox.go +++ b/blox/blox.go @@ -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)