graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.89k stars 962 forks source link

Firehose startBlock before the first available block doesn't start indexing #2964

Closed azf20 closed 2 years ago

azf20 commented 2 years ago

If the provided startBlock is earlier than the Firehose's first block, the subgraph does not start indexing and hangs

sduchesneau commented 2 years ago

The issue was not in client side, but in the firehose.

fixed here: https://github.com/streamingfast/bstream/commit/268abefde7b452b728172a8cc7ac46ec7098a835 deployed to our current prod endpoint with this flag:

--common-first-streamable-block=9820214 (prod) --common-first-streamable-block=42376923 (testnet)

tested like this: grpcurl -H "Authorization: Bearer $SF_TOKEN" -d "{\"start_block_num\":1234}" mainnet.near.streamingfast.io:443 dfuse.bstream.v1.BlockStreamV2/Blocks

sduchesneau commented 2 years ago

Let me know if this resolves the issue and if it can be closed.

azf20 commented 2 years ago

Thanks @sduchesneau ! I deployed a near-mainnet subgraph with startBlock: 0 and indexing started smoothly, closing this issue