diff --git a/go/host/enclave/guardian.go b/go/host/enclave/guardian.go index b79d87cea6..23a072cb2d 100644 --- a/go/host/enclave/guardian.go +++ b/go/host/enclave/guardian.go @@ -644,6 +644,11 @@ func (g *Guardian) periodicBundleSubmission() { continue } + if len(bundle.CrossChainHashes) == 0 { + g.logger.Debug("No cross chain data to submit. Skipping.") + continue + } + err = g.sl.L1Publisher().PublishCrossChainBundle(bundle) if err != nil { g.logger.Error("Unable to publish cross chain bundle", log.ErrKey, err) diff --git a/go/host/l1/publisher.go b/go/host/l1/publisher.go index 8042510b19..5ec7cd933c 100644 --- a/go/host/l1/publisher.go +++ b/go/host/l1/publisher.go @@ -122,6 +122,7 @@ func (p *Publisher) GetBundleRangeFromManagementContract() (*big.Int, *big.Int, return nil, nil, err } fromSeqNo = batch.SeqNo() + fromSeqNo = batch.SeqNo().Add(fromSeqNo, big.NewInt(1)) } lastBatchRolledUpSeqNo, err := managementCtr.LastBatchSeqNo(&bind.CallOpts{})