Skip to content

Commit

Permalink
Fixed issue with submission getting stuck.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed May 20, 2024
1 parent e847563 commit bb72020
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/host/enclave/guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions go/host/l1/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit bb72020

Please sign in to comment.