Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epoch and Blocknumber gives false information #270

Open
carlosvdr opened this issue Apr 17, 2024 · 1 comment
Open

Epoch and Blocknumber gives false information #270

carlosvdr opened this issue Apr 17, 2024 · 1 comment

Comments

@carlosvdr
Copy link

I ran this query
https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum-sepolia/graphql?query=query+MyQuery+%7B%0A++allocations%28where%3A+%7Bid%3A+%220x9b83a26cf9866c4832572325bfdbe9c15c383142%22%7D%29+%7B%0A++++id%0A++++closedAt%0A++++status%0A++++createdAtBlockNumber%0A++++closedAtBlockNumber%0A++++closedAtEpoch%0A++%7D%0A%7D

Which returned this data:

{
  "data": {
    "allocations": [
      {
        "id": "0x9b83a26cf9866c4832572325bfdbe9c15c383142",
        "closedAt": 1712870496,
        "status": "Closed",
        "createdAtBlockNumber": 5635607,
        "closedAtBlockNumber": 5677434,
        "closedAtEpoch": 2208
      }
    ]
  }
}

This is weird since if you go look up for that block number
https://sepolia.arbiscan.io/txs?block=5677434
This tx wont appear there, and its no where to be found

The real txn block can be found here (tho dont ask em which one is it cause I couldn't figure out which one of the multicall txns it correspond to )
https://sepolia.arbiscan.io/address/0x1007f1E9c2271e7d44C04aFA56239150D3a546dA

Also in the same boat as this if you can see epoch it was closed at is 2208
And if you look for latest epoch it is also 2208

In theory it should have advanced since I closed the allocation
As it should advance with those kind of transactions

I also opened an allocation after closing that one, which should have made the epoch advance too

{
  "data": {
    "allocations": [
      {
        "id": "0x2345cd0b8b6937fa88ca9e67a1f52b432f1976a8",
        "closedAt": null,
        "status": "Active",
        "createdAtBlockNumber": 5682784,
        "closedAtBlockNumber": null,
        "closedAtEpoch": null,
        "createdAt": 1712935475
      }
    ]
  }
}

This allocation was opened after closing that one, you can see this by checking the createdAt timestamp which is after the closedAtTimestamp from the other allocation

@gusinacio
Copy link
Member

One more information about this: A new epoch was created but graphNetwork is still returning 2208 as the currentEpoch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants