livepeer / livepeer/subgraph

subgraph: gasUsed for winningTicketRedeemds is the gas limit on the tx and not the actual gas used

Open
#27 4 comments 2 reactions 1 assignee View on GitHub

@adamsoffer is already working on this.

Since Aug 13, 2020.

  • #164 by @rickstaa — open
Dominant language
TypeScript
Stars
5
Forks
7
Avg merge
4h 1m
Merged PRs (30d)
6

Description

**Describe the bug (required)**
A clear and concise description of what the bug is.

I entered the following query at https://thegraph.com/explorer/subgraph/livepeer/livepeer:

```
{
winningTicketRedeemeds(first :5, orderBy: blockNumber, orderDirection: desc) {
gasUsed
}
}
```

and I noticed that for tx 0xd05bf9676006101c15249494d5a1c83a16d3e8751ae589291d64cdd370b36314 the gasUsed field is 261183, but the gas used shown on the [Etherscan page](https://etherscan.io/tx/0xd05bf9676006101c15249494d5a1c83a16d3e8751ae589291d64cdd370b36314) is 257657. 261183 is actually the gas limit of the tx and not the gas used by the tx.

**Expected behavior (required)**
A clear and concise description of what you expected to happen.

The gasUsed field should represent the gas used by a tx and not the gas limit of the tx.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.