From 86418f6d4a6135bfe45b875ae6599576f968392c Mon Sep 17 00:00:00 2001 From: Stefan Iliev <46542846+StefanIliev545@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:26:00 +0300 Subject: [PATCH] Stopped returning errors on republish. (#2008) * Stopped returning errors on republish. * Rever local network enabling. --------- Co-authored-by: StefanIliev545 --- go/host/l1/publisher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/host/l1/publisher.go b/go/host/l1/publisher.go index cfc077456f..cf52af0d84 100644 --- a/go/host/l1/publisher.go +++ b/go/host/l1/publisher.go @@ -316,7 +316,8 @@ func (p *Publisher) PublishCrossChainBundle(bundle *common.ExtCrossChainBundle, tx, err := managementCtr.AddCrossChainMessagesRoot(transactor, [32]byte(bundle.LastBatchHash.Bytes()), bundle.L1BlockHash, bundle.L1BlockNum, bundle.CrossChainRootHashes, bundle.Signature, rollupNum, forkID) if err != nil { if !errors.Is(err, errutil.ErrCrossChainBundleRepublished) { - p.logger.Error("Error with submitting cross chain bundle transaction.", log.ErrKey, err, log.BundleHashKey, bundle.LastBatchHash) + p.logger.Info("Cross chain bundle already published. Proceeding without publishing", log.ErrKey, err, log.BundleHashKey, bundle.LastBatchHash) + return nil } p.hostWallet.SetNonce(p.hostWallet.GetNonce() - 1) return fmt.Errorf("unable to submit cross chain bundle transaction. Cause: %w", err)