mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
update
This commit is contained in:
parent
4eac03ec48
commit
00829e5e35
1 changed files with 0 additions and 18 deletions
|
|
@ -42,10 +42,6 @@ type multiCallStats struct {
|
|||
BlockTime int64 `json:"blockTime"`
|
||||
Success bool `json:"success"`
|
||||
CacheEnabled bool `json:"cacheEnabled"`
|
||||
// gasUsed, excluding calls from cache
|
||||
GasUsed int64 `json:"gasUsed"`
|
||||
OriginGasUsed int64 `json:"originGasUsed"`
|
||||
CacheHitCount int64 `json:"cacheHitCount"`
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
@ -317,13 +313,6 @@ func (s *BlockChainAPI) MultiCall(ctx context.Context, args []TransactionArgs, b
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
if r.FromCache {
|
||||
stats.CacheHitCount++
|
||||
} else {
|
||||
stats.GasUsed += r.GasUsed
|
||||
}
|
||||
stats.OriginGasUsed += r.GasUsed
|
||||
}(i, arg)
|
||||
}
|
||||
wg.Wait()
|
||||
|
|
@ -348,13 +337,6 @@ func (s *BlockChainAPI) MultiCall(ctx context.Context, args []TransactionArgs, b
|
|||
}
|
||||
continue
|
||||
}
|
||||
|
||||
if r.FromCache {
|
||||
stats.CacheHitCount++
|
||||
} else {
|
||||
stats.GasUsed += r.GasUsed
|
||||
}
|
||||
stats.OriginGasUsed += r.GasUsed
|
||||
}
|
||||
|
||||
return &multiCallResp{Results: ret, Stats: stats}, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue