@@ -563,7 +563,7 @@ type ReceiptWithTx struct {
563563// In addition to returning receipts, it also returns the corresponding transactions.
564564// This is because receipts only contain low-level data, while user-facing data
565565// may require additional information from the Transaction.
566- func filterReceipts (txHashMap map [common.Hash ]bool , ev core.ChainEvent ) []* ReceiptWithTx {
566+ func filterReceipts (txHashes map [common.Hash ]bool , ev core.ChainEvent ) []* ReceiptWithTx {
567567 var ret []* ReceiptWithTx
568568
569569 receipts := ev .Receipts
@@ -574,7 +574,7 @@ func filterReceipts(txHashMap map[common.Hash]bool, ev core.ChainEvent) []*Recei
574574 return ret
575575 }
576576
577- if len (txHashMap ) == 0 {
577+ if len (txHashes ) == 0 {
578578 // No filter, send all receipts with their transactions.
579579 ret = make ([]* ReceiptWithTx , len (receipts ))
580580 for i , receipt := range receipts {
@@ -585,14 +585,14 @@ func filterReceipts(txHashMap map[common.Hash]bool, ev core.ChainEvent) []*Recei
585585 }
586586 } else {
587587 for i , receipt := range receipts {
588- if txHashMap [receipt .TxHash ] {
588+ if txHashes [receipt .TxHash ] {
589589 ret = append (ret , & ReceiptWithTx {
590590 Receipt : receipt ,
591591 Transaction : txs [i ],
592592 })
593593
594594 // Early exit if all receipts are found
595- if len (ret ) == len (txHashMap ) {
595+ if len (ret ) == len (txHashes ) {
596596 break
597597 }
598598 }
0 commit comments