Commit c113520 1 parent 57c252e commit c113520 Copy full SHA for c113520
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -632,17 +632,23 @@ func (w *worker) resultLoop() {
632
632
receipts = make ([]* types.Receipt , len (task .receipts ))
633
633
logs []* types.Log
634
634
)
635
- for i , receipt := range task .receipts {
635
+ for i , taskReceipt := range task .receipts {
636
+ receipt := new (types.Receipt )
637
+ receipts [i ] = receipt
638
+ * receipt = * taskReceipt
639
+
636
640
// add block location fields
637
641
receipt .BlockHash = hash
638
642
receipt .BlockNumber = block .Number ()
639
643
receipt .TransactionIndex = uint (i )
640
644
641
- receipts [i ] = new (types.Receipt )
642
- * receipts [i ] = * receipt
643
645
// Update the block hash in all logs since it is now available and not when the
644
646
// receipt/log of individual transactions were created.
645
- for _ , log := range receipt .Logs {
647
+ receipt .Logs = make ([]* types.Log , len (taskReceipt .Logs ))
648
+ for i , taskLog := range taskReceipt .Logs {
649
+ log := new (types.Log )
650
+ receipt .Logs [i ] = log
651
+ * log = * taskLog
646
652
log .BlockHash = hash
647
653
}
648
654
logs = append (logs , receipt .Logs ... )
You can’t perform that action at this time.
0 commit comments