diff --git a/sequencer/finalizer.go b/sequencer/finalizer.go index 707fa2a4ec..d5a50b13d6 100644 --- a/sequencer/finalizer.go +++ b/sequencer/finalizer.go @@ -731,8 +731,16 @@ func (f *finalizer) handleForcedTxsProcessResp(ctx context.Context, request stat } } + from, err := state.GetSender(txResp.Tx) + if err != nil { + log.Errorf("handleForcedTxsProcessResp: failed to get sender: %s", err) + continue + } + processedTransaction := transactionToStore{ - txTracker: nil, + txTracker: &TxTracker{ + From: from, + }, response: txResp, batchResponse: result, batchNumber: request.BatchNumber, @@ -743,12 +751,6 @@ func (f *finalizer) handleForcedTxsProcessResp(ctx context.Context, request stat flushId: result.FlushID, } - from, err := state.GetSender(txResp.Tx) - if err != nil { - log.Errorf("handleForcedTxsProcessResp: failed to get sender: %s", err) - continue - } - f.pendingTxsToStoreMux.Lock() // global tracker f.pendingTxsToStoreWG.Add(1)