MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.97k stars 522 forks source link

Fix global_slot_since_genesis query #15779

Open martyall opened 3 days ago

martyall commented 3 days ago

what it does

how I tested

I synced to mainnet and ran the query there:

> curl -g -X POST -H "Content-Type: application/json" -d '{"query":"query { fork_config }"}' http://127.0.0.1:3085/graphql

{"data":{"fork_config":{"proof":{"fork":{"state_hash":"3NK4BpDSekaqsG6tx8Nse2zJchRft2JpnbvMiog55WCr5xJZaKeP","blockchain_length":359605,"global_slot_since_genesis":564480}}

So the global_slot_since_genesis came back as 564480 at block height 359605, which seems right.

Checklist:

martyall commented 2 days ago

!ci-build-me

svv232 commented 2 days ago

!ci-build-me