Commit 2607824 1 parent 57b8f47 commit 2607824 Copy full SHA for 2607824
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 @@ -642,17 +642,23 @@ func (w *worker) resultLoop() {
642
642
receipts = make ([]* types.Receipt , len (task .receipts ))
643
643
logs []* types.Log
644
644
)
645
- for i , receipt := range task .receipts {
645
+ for i , taskReceipt := range task .receipts {
646
+ receipt := new (types.Receipt )
647
+ receipts [i ] = receipt
648
+ * receipt = * taskReceipt
649
+
646
650
// add block location fields
647
651
receipt .BlockHash = hash
648
652
receipt .BlockNumber = block .Number ()
649
653
receipt .TransactionIndex = uint (i )
650
654
651
- receipts [i ] = new (types.Receipt )
652
- * receipts [i ] = * receipt
653
655
// Update the block hash in all logs since it is now available and not when the
654
656
// receipt/log of individual transactions were created.
655
- for _ , log := range receipt .Logs {
657
+ receipt .Logs = make ([]* types.Log , len (taskReceipt .Logs ))
658
+ for i , taskLog := range taskReceipt .Logs {
659
+ log := new (types.Log )
660
+ receipt .Logs [i ] = log
661
+ * log = * taskLog
656
662
log .BlockHash = hash
657
663
}
658
664
logs = append (logs , receipt .Logs ... )
You can’t perform that action at this time.
0 commit comments