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

GraphQL: WinnerAccount liquid balance greater than total currency #8083

Closed
garethtdavies opened this issue Mar 2, 2021 · 1 comment · Fixed by #8096
Closed

GraphQL: WinnerAccount liquid balance greater than total currency #8083

garethtdavies opened this issue Mar 2, 2021 · 1 comment · Fixed by #8096
Assignees
Projects
Milestone

Comments

@garethtdavies
Copy link
Contributor

garethtdavies commented Mar 2, 2021

Block 65 on finalfinal2 testnet returns a liquid balance for the winnerAccount greater than the total currency.

Replicate on a running node via:

query MyQuery {
  version
  block(height: 65) {
    creator
    stateHash
    stateHashField
    protocolState {
      blockchainState {
        date
        snarkedLedgerHash
        stagedLedgerHash
        utcDate
      }
      consensusState {
        blockHeight
        blockchainLength
      }
    }
    winnerAccount {
      publicKey
      balance {
        liquid
        blockHeight
        locked
        stateHash
        total
        unknown
      }
    }
    creatorAccount {
      publicKey
    }
  }
}

Returns:

{
  "data": {
    "version": "fd3980820fb82c7355af49462ffefe6718800b77",
    "block": {
      "creator": "B62qq3tqfdj19hqaVCozJFM2q9gT2WezQMaJMKD6wxyvK3fMpHiP9va",
      "stateHash": "3NKNbVNXMARPwkoji8EgxGaG8bmpcpdz2DsJpG5tmiHQTt5HXvSj",
      "stateHashField": "24844393333636512371618186719401543936246950305138775209070380806522076838956",
      "protocolState": {
        "blockchainState": {
          "date": "1614693125000",
          "snarkedLedgerHash": "jwZo52UWRRqX6Uj8kSuBbvDWDQAiLpuZBWSAdFNGHq73J7a9Rie",
          "stagedLedgerHash": "jxXzU1HhnRA7UvWPzZESxZmEkAqdD2vqgys6pMaCDro5PBKGZ6Z",
          "utcDate": "1614693125000"
        },
        "consensusState": {
          "blockHeight": "65",
          "blockchainLength": "65"
        }
      },
      "winnerAccount": {
        "publicKey": "B62qp5DTw3dw8ipgSCCDBGextDBAo6FBDSWVwMo1xLRJrH9L6UMt9d3",
        "balance": {
          "liquid": "18446744073521551616",
          "blockHeight": "76",
          "locked": "3666665000000000",
          "stateHash": "3NLRgPznj3h8KXFvhAPmVjkkz8gHHmSnKK8JhZxtCtizRqbZ5sJz",
          "total": "3666664812000000",
          "unknown": "3666664812000000"
        }
      },
      "creatorAccount": {
        "publicKey": "B62qq3tqfdj19hqaVCozJFM2q9gT2WezQMaJMKD6wxyvK3fMpHiP9va"
      }
    }
  }
}
@garethtdavies garethtdavies changed the title GraphQL: Winner amount greater than total currency GraphQL: WinnerAccount liquid balance greater than total currency Mar 2, 2021
@bkase bkase added this to Discuss in MainNet Mar 2, 2021
@garethtdavies
Copy link
Contributor Author

If need another example 124 also exhibits this

{
  "data": {
    "version": "fd3980820fb82c7355af49462ffefe6718800b77",
    "block": {
      "creator": "B62qq3tqfdj19hqaVCozJFM2q9gT2WezQMaJMKD6wxyvK3fMpHiP9va",
      "stateHash": "3NLnuZEqsNq5VjEiJVoCirrTPuFFnpkJpazfhU7XD17cRcFMB9tw",
      "stateHashField": "5254538717603971835557906670140058064987004068995539586946668752242948678375",
      "protocolState": {
        "blockchainState": {
          "date": "1614717245000",
          "snarkedLedgerHash": "jwZo52UWRRqX6Uj8kSuBbvDWDQAiLpuZBWSAdFNGHq73J7a9Rie",
          "stagedLedgerHash": "jx4s6qUCQu2hHRi6q2g5zV8ozALEwygeMxQT3F5uwS252rUm6GN",
          "utcDate": "1614717245000"
        },
        "consensusState": {
          "blockHeight": "124",
          "blockchainLength": "124"
        }
      },
      "winnerAccount": {
        "publicKey": "B62qj4gpC5Pbh6nUDBg7Xi7DbfDBLd4wQaHT1dodjdEK4pLBi498FZ6",
        "balance": {
          "liquid": "18446744073688551616",
          "blockHeight": "126",
          "locked": "2399989000000000",
          "stateHash": "3NKrqvdw4M39m2tHy4fNcgtr3Yu8ettjrFHrHXwNRWSZbvSYsZcn",
          "total": "2399988979000000",
          "unknown": "2399988979000000"
        }
      },
      "creatorAccount": {
        "publicKey": "B62qq3tqfdj19hqaVCozJFM2q9gT2WezQMaJMKD6wxyvK3fMpHiP9va"
      }
    }
  }
}

@aneesharaines aneesharaines moved this from Discuss to To do in MainNet Mar 2, 2021
@psteckler psteckler self-assigned this Mar 3, 2021
@psteckler psteckler moved this from To do to In Review in MainNet Mar 3, 2021
@aneesharaines aneesharaines linked a pull request Mar 3, 2021 that will close this issue
@aneesharaines aneesharaines added this to the Mina 1.0.1 milestone Mar 3, 2021
@nholland94 nholland94 moved this from In Review to Done in MainNet Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

5 participants