From 00829e5e356da3ceac4a77f6fd4a7491424a438b Mon Sep 17 00:00:00 2001 From: brion Date: Thu, 22 Dec 2022 21:41:21 +0800 Subject: [PATCH] update --- internal/ethapi/api_multicall.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/internal/ethapi/api_multicall.go b/internal/ethapi/api_multicall.go index ca30f1dd5d..23e89d9a68 100644 --- a/internal/ethapi/api_multicall.go +++ b/internal/ethapi/api_multicall.go @@ -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