mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +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"`
|
BlockTime int64 `json:"blockTime"`
|
||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
CacheEnabled bool `json:"cacheEnabled"`
|
CacheEnabled bool `json:"cacheEnabled"`
|
||||||
// gasUsed, excluding calls from cache
|
|
||||||
GasUsed int64 `json:"gasUsed"`
|
|
||||||
OriginGasUsed int64 `json:"originGasUsed"`
|
|
||||||
CacheHitCount int64 `json:"cacheHitCount"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
@ -317,13 +313,6 @@ func (s *BlockChainAPI) MultiCall(ctx context.Context, args []TransactionArgs, b
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.FromCache {
|
|
||||||
stats.CacheHitCount++
|
|
||||||
} else {
|
|
||||||
stats.GasUsed += r.GasUsed
|
|
||||||
}
|
|
||||||
stats.OriginGasUsed += r.GasUsed
|
|
||||||
}(i, arg)
|
}(i, arg)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
@ -348,13 +337,6 @@ func (s *BlockChainAPI) MultiCall(ctx context.Context, args []TransactionArgs, b
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.FromCache {
|
|
||||||
stats.CacheHitCount++
|
|
||||||
} else {
|
|
||||||
stats.GasUsed += r.GasUsed
|
|
||||||
}
|
|
||||||
stats.OriginGasUsed += r.GasUsed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return &multiCallResp{Results: ret, Stats: stats}, nil
|
return &multiCallResp{Results: ret, Stats: stats}, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue