Skip to content

Commit 48e15a3

Browse files
Remove restriction of transaction filtering to endorsement transactions
Signed-off-by: Alexandros Filios <alexandros.filios@ibm.com>
1 parent d16c293 commit 48e15a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

platform/fabric/core/generic/delivery/service.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ func (c *Service) Scan(ctx context.Context, txID string, callback driver.Deliver
139139
return false, err
140140
}
141141

142-
if common.HeaderType(channelHeader.Type) != common.HeaderType_ENDORSER_TRANSACTION {
143-
continue
144-
}
145-
146142
ptx, err := c.transactionManager.NewProcessedTransactionFromEnvelopeRaw(tx)
147143
if err != nil {
148144
return false, err

platform/fabric/core/generic/finality/listenermanager.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ func NewListenerManager[T TxInfo](config DeliveryListenerManagerConfig, delivery
8989
func fetchTxs[T TxInfo](evicted map[driver2.TxID][]ListenerEntry[T], mapper TxInfoMapper[T], delivery *fabric.Delivery) {
9090
for txID, listeners := range evicted {
9191
go func(txID driver2.TxID, listeners []ListenerEntry[T]) {
92-
_ = delivery.Scan(context.TODO(), txID, func(tx *fabric.ProcessedTransaction) (bool, error) {
92+
logger.Debugf("Launching routine to scan for tx [%s]", txID)
93+
err := delivery.Scan(context.TODO(), txID, func(tx *fabric.ProcessedTransaction) (bool, error) {
9394
if tx.TxID() != txID {
9495
return false, nil
9596
}
@@ -106,6 +107,9 @@ func fetchTxs[T TxInfo](evicted map[driver2.TxID][]ListenerEntry[T], mapper TxIn
106107
}
107108
return true, nil
108109
})
110+
if err != nil {
111+
logger.Errorf("Failed scanning for tx [%s]: %v", txID, err)
112+
}
109113
}(txID, listeners)
110114
}
111115
}

0 commit comments

Comments
 (0)