@@ -83,8 +83,6 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
83
83
parsedMessageResults = make (messagemodel.ParsedMessages , 0 )
84
84
errorsDetected = make ([]* messages.MessageError , 0 )
85
85
exeMsgSeen = make (map [cid.Cid ]bool )
86
- totalGasLimit int64
87
- totalUniqGasLimit int64
88
86
)
89
87
90
88
for _ , msgrec := range blkMsgRec {
@@ -100,22 +98,12 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
100
98
return nil , nil , err
101
99
}
102
100
103
- // calculate total gas limit of executed messages regardless of duplicates.
104
- for itr .HasNext () {
105
- msg , _ , _ := itr .Next ()
106
- totalGasLimit += msg .VMMessage ().GasLimit
107
- }
108
-
109
- // reset the iterator to beginning
110
- itr .Reset ()
111
-
112
101
for itr .HasNext () {
113
102
m , _ , r := itr .Next ()
114
103
if exeMsgSeen [m .Cid ()] {
115
104
continue
116
105
}
117
106
exeMsgSeen [m .Cid ()] = true
118
- totalUniqGasLimit += m .VMMessage ().GasLimit
119
107
120
108
toActorCode , found := getActorCodeFn (m .VMMessage ().To )
121
109
if ! found && r .ExitCode == 0 {
@@ -124,7 +112,7 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
124
112
// unknown type.
125
113
// If the message was executed it means we are out of step with Lotus behaviour somehow. This probably
126
114
// indicates that Lily actor type detection is out of date.
127
- log .Errorw ("parsing message" , "error" , err , " cid" , m .Cid ().String (), "receipt" , r )
115
+ log .Errorw ("parsing message" , "cid" , m .Cid ().String (), "receipt" , r )
128
116
errorsDetected = append (errorsDetected , & messages.MessageError {
129
117
Cid : m .Cid (),
130
118
Error : fmt .Errorf ("failed to parse message params: missing to actor code" ).Error (),
0 commit comments