@@ -501,7 +501,7 @@ func (l *BatchSubmitter) publishingLoop(ctx context.Context, wg *sync.WaitGroup,
501501
502502 for pi := range l .publishSignal {
503503 l .Log .Debug ("publishing loop received signal" , "force_publish" , pi .forcePublish )
504- l .publishStateToL1 (ctx , txQueue , receiptsCh , daGroup , pi . forcePublish )
504+ l .publishStateToL1 (ctx , txQueue , receiptsCh , daGroup , pi )
505505 }
506506
507507 // First wait for all DA requests to finish to prevent new transactions being queued
@@ -771,7 +771,7 @@ func (l *BatchSubmitter) waitNodeSync() error {
771771
772772// publishStateToL1 queues up all pending TxData to be published to the L1, returning when there is no more data to
773773// queue for publishing or if there was an error queuing the data.
774- func (l * BatchSubmitter ) publishStateToL1 (ctx context.Context , queue * txmgr.Queue [txRef ], receiptsCh chan txmgr.TxReceipt [txRef ], daGroup * errgroup.Group , forcePublish bool ) {
774+ func (l * BatchSubmitter ) publishStateToL1 (ctx context.Context , queue * txmgr.Queue [txRef ], receiptsCh chan txmgr.TxReceipt [txRef ], daGroup * errgroup.Group , pi pubInfo ) {
775775 for {
776776 select {
777777 case <- ctx .Done ():
@@ -788,7 +788,7 @@ func (l *BatchSubmitter) publishStateToL1(ctx context.Context, queue *txmgr.Queu
788788 return
789789 }
790790
791- err := l .publishTxToL1 (ctx , queue , receiptsCh , daGroup , forcePublish )
791+ err := l .publishTxToL1 (ctx , queue , receiptsCh , daGroup , pi )
792792 if err != nil {
793793 if err != io .EOF {
794794 l .Log .Error ("Error publishing tx to l1" , "err" , err )
@@ -842,7 +842,7 @@ func (l *BatchSubmitter) clearState(ctx context.Context) {
842842}
843843
844844// publishTxToL1 submits a single state tx to the L1
845- func (l * BatchSubmitter ) publishTxToL1 (ctx context.Context , queue * txmgr.Queue [txRef ], receiptsCh chan txmgr.TxReceipt [txRef ], daGroup * errgroup.Group , forcePublish bool ) error {
845+ func (l * BatchSubmitter ) publishTxToL1 (ctx context.Context , queue * txmgr.Queue [txRef ], receiptsCh chan txmgr.TxReceipt [txRef ], daGroup * errgroup.Group , pi pubInfo ) error {
846846 // send all available transactions
847847 l1tip , isPectra , err := l .l1Tip (ctx )
848848 if err != nil {
@@ -855,7 +855,7 @@ func (l *BatchSubmitter) publishTxToL1(ctx context.Context, queue *txmgr.Queue[t
855855 // Collect next transaction data. This pulls data out of the channel, so we need to make sure
856856 // to put it back if ever da or txmgr requests fail, by calling l.recordFailedDARequest/recordFailedTx.
857857 l .channelMgrMutex .Lock ()
858- txdata , err := l .channelMgr .TxData (l1tip .ID (), isPectra , params .IsThrottling (), pubInfo { forcePublish : forcePublish } )
858+ txdata , err := l .channelMgr .TxData (l1tip .ID (), isPectra , params .IsThrottling (), pi )
859859 l .channelMgrMutex .Unlock ()
860860
861861 if err == io .EOF {
0 commit comments