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
72 stars 16 forks source link

Are missing blocks and transactions forwarded downstream? #66

Open linuskendall opened 11 months ago

linuskendall commented 11 months ago

If faithful doesn't have a block (i.e. the block is not among those available) does it forward getBlock downstream if the --proxy command is configured?

Same thing for a transaction that is not found? This is perhaps more dubious since a not found transaction might just mean it doesnt exist.

gagliardetto commented 11 months ago

Yes, if it's configured to do so.

faithful-cli rpc --proxy=/path/to/proxy/solana-proxy.json /path/to/epochs/

solana-proxy.json:

{
    "target": "https://api.mainnet-beta.solana.com",
    "headers": {
        "My-Header": "My-Value"
    },
    "proxyFailedRequests": true
}
gagliardetto commented 10 months ago

Same thing for a transaction that is not found? This is perhaps more dubious since a not found transaction might just mean it doesnt exist.

Yes. Just to be sure, anything that isn't a success, is considered a failure and retried on the fallback rpc.