FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.
Other
58.02k stars 2.78k forks source link

Make complex API support configurable through the CLI #1569

Open xgreenx opened 10 months ago

xgreenx commented 10 months ago

Complex means indexer related functionality that we plan to remove in the future

MitchTurner commented 6 months ago

The idea is that we have an off-chain db and an on-chain db. There might be situations where we only want the data in the on-chain db (e.g. blocks, txs, etc) and don't need the more complex off-chain information (coins owned, etc). Some endpoints currently look at both on-chain and off-chain data as well. We want to be able to configure the node and specify which information is available.

  1. No external API, no GraphQL, no off-chain db
  2. We support GraphQL, but not off-chain db
  3. Support access to everything
  4. Support RPC instead of GraphQL
MitchTurner commented 14 hours ago

We've also talked about doing this with feature flags at compile time rather than cli flags at runtime. This could help limit the size of the binary and the cost of compiling a new one. Worth considering.