Granola-Team / mina-block-explorer

Web application for the Mina blockchain
Apache License 2.0
6 stars 6 forks source link

STAKE_DELEGATION user txn are always non-canonical #801

Closed n1tranquilla closed 2 months ago

n1tranquilla commented 2 months ago

Possibly related to Granola-Team/mina-indexer#1092 or Granola-Team/mina-indexer#1078

trevorbernard commented 2 months ago

It would be related but there are many STAKE_DELEGATIONS <= 9999 block height. This is one such example:

https://minasearch.com/commands/user?q-height=4394

n1tranquilla commented 2 months ago
curl 'https://api.minasearch.com/graphql' \
  --data-raw $'{"query":"query TransactionsQuery(\\n  $limit: Int = 10\\n  $sort_by: TransactionSortByInput\u0021\\n  $query: TransactionQueryInput\u0021\\n) {\\n  transactions(limit: $limit, sortBy: $sort_by, query: $query) {\\n    blockHeight\\n    kind\\n  }\\n}\\n","variables":{"limit":10,"sort_by":"BLOCKHEIGHT_DESC","query":{"canonical":true,"blockHeight_lte":9953}},"operationName":"TransactionsQuery"}'

It appears as if STAKE_DELEGATIONs are only found in non-canonical blocks