rpcpool / yellowstone-faithful

Project Yellowstone Old Faithful is the project to make all of Solana's history accessible, content addressable and available via a variety of means.
https://old-faithful.net/
GNU Affero General Public License v3.0
59 stars 11 forks source link

Block 0 can't be fetched #60

Closed linuskendall closed 7 months ago

linuskendall commented 8 months ago

Due to the prefetcher trying to get previous block ?


+ faithful-cli rpc-server-car --listen :7999 https://files.old-faithful.net/0/epoch-0.car https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.cid-to-offset.index https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.slot-to-cid.index https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.sig-to-cid.index
I1106 00:59:00.855412    8254 storage.go:34] opening index file from "https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.cid-to-offset.index" as HTTP remote file
I1106 00:59:02.113340    8254 storage.go:34] opening index file from "https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.slot-to-cid.index" as HTTP remote file
I1106 00:59:02.883867    8254 storage.go:34] opening index file from "https://files.old-faithful.net/0/epoch-0.car.bafyreifljyxj55v6jycjf2y7tdibwwwqx75eqf5mn2thip2sswyc536zqq.sig-to-cid.index" as HTTP remote file
I1106 00:59:03.889074    8254 storage.go:67] opening CAR file from "https://files.old-faithful.net/0/epoch-0.car" as HTTP remote file
I1106 00:59:03.932232    8254 cmd-rpc-server-car.go:185] RPC server listening on :7999
I1106 00:59:12.911847    8254 http-handler.go:60] Received request: "{\"jsonrpc\": \"2.0\",\"id\":1,\"method\":\"getBlock\",\"params\":[0, {\"maxSupportedTransactionVersion\":0}]}"
I1106 00:59:13.914786    8254 cmd-rpc-server-car.go:372] found CID for slot 0: bafyreianr3wvyk6ulwuvtlgiu4xfzadob6wi7mwizemfhljbc5v2zvullq
E1106 00:59:17.353629    8254 cmd-rpc-server-car-getBlock.go:199] failed to prefetch from car: EOF

``
gagliardetto commented 8 months ago

Fixed in #69

Note: the faithful-cli rpc-server-car command is deprecated; i'll remove it soon. Use faithful-cli rpc instead.