@@ -184,7 +184,10 @@ func NewBlockComputer(
184184 return nil , fmt .Errorf ("could not build system chunk transaction: %w" , err )
185185 }
186186
187- processCallbackTxn := blueprints .ProcessCallbacksTransaction (vmCtx .Chain )
187+ processCallbackTxn , err := blueprints .ProcessCallbacksTransaction (vmCtx .Chain )
188+ if err != nil {
189+ return nil , fmt .Errorf ("failed to generate callbacks script: %w" , err )
190+ }
188191
189192 return & blockComputer {
190193 vm : vm ,
@@ -286,13 +289,8 @@ func (e *blockComputer) queueUserTransactions(
286289 isSystemTransaction : false ,
287290 }
288291
289- << << << < HEAD
290292 for i , txnBody := range collection .Collection .Transactions {
291- requestQueue <- newTransactionRequest (
292- == == == =
293- for i , txnBody := range collection.Transactions {
294293 txQueue <- newTransactionRequest (
295- >> >> >> > master
296294 collectionInfo ,
297295 collectionCtx ,
298296 collectionLogger ,
@@ -444,17 +442,9 @@ func (e *blockComputer) executeUserTransactions(
444442 rawCollections []* entity.CompleteCollection ,
445443 userTxCount int ,
446444) {
447- << << << < HEAD
448- txQueue := make (chan TransactionRequest , userTxCount )
449-
450- e .queueUserTransactions (
445+ txQueue := e .queueUserTransactions (
451446 block .BlockID (),
452447 block .Block .ToHeader (),
453- == == == =
454- txQueue := e .queueUserTransactions (
455- block .ID (),
456- block .Block .Header ,
457- >> >> >> > master
458448 rawCollections ,
459449 userTxCount ,
460450 )
@@ -578,21 +568,10 @@ func (e *blockComputer) executeProcessCallback(
578568 blockSpan otelTrace.Span ,
579569 txnIndex uint32 ,
580570 systemLogger zerolog.Logger ,
581- << << << < HEAD
582- ) ([]* flow.TransactionBody , error ) {
583- processTxn , err := blueprints .ProcessCallbacksTransaction (e .vmCtx .Chain )
584- if err != nil {
585- return nil , fmt .Errorf ("failed to generate callbacks script: %w" , err )
586- }
587-
588- // add process callback transaction to the system collection info
589- // TODO(7749): fix illegal mutation
590- systemCollectionInfo .CompleteCollection .Collection .Transactions = append (systemCollectionInfo .CompleteCollection .Collection .Transactions , processTxn ) //nolint:structwrite
591- == == == =
592571) ([]* flow.TransactionBody , uint32 , error ) {
593572 // add process callback transaction to the system collection info
594- systemCollectionInfo . CompleteCollection . Transactions = append ( systemCollectionInfo . CompleteCollection . Transactions , e . processCallbackTxn )
595- >> >> >> > master
573+ // TODO(7749): fix illegal mutation
574+ systemCollectionInfo . CompleteCollection . Collection . Transactions = append ( systemCollectionInfo . CompleteCollection . Collection . Transactions , e . processCallbackTxn ) //nolint:structwrite
596575
597576 request := newTransactionRequest (
598577 systemCollectionInfo ,
0 commit comments