Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
18 stars 10 forks source link

Converting from Epoch to Ledger Hash is broken #1104

Closed n1tranquilla closed 3 months ago

n1tranquilla commented 3 months ago
Screen Shot 2024-06-11 at 9 45 45 AM
trevorbernard commented 3 months ago
query Ledger78(
  $limit: Int = 1
  $query: StakeQueryInput
) {
    stakes(query: $query, limit: $limit) {
    public_key
    ledgerHash
    nonce
    balanceNanomina
  }  
}
{
  "limit": 1,
  "query": { "epoch": 78 }
}

Correctly returns a value:

{
  "data": {
    "stakes": [
      {
        "public_key": "B62qrQKS9ghd91shs73TCmBJRW9GzvTJK443DPx2YbqcyoLc56g1ny9",
        "ledgerHash": "jxXwNfemxGwZcxKGhfrwzfE4QfxxGm5mkYieHQCafFkb6QBf9Xo",
        "nonce": 17,
        "balanceNanomina": 137414673592300000
      }
    ]
  }
}
trevorbernard commented 3 months ago
Screenshot 2024-06-11 at 10 00 00 AM