rateLimit option (EVM/Substrate).
Indexing unfinalized blocks
When ingesting from RPC, Squid SDK can index blocks before they are finalized, enabling real-time use cases. If a blockhain reorganization happens, processor will roll back any changes to the database made due to orphaned blocks, then re-run its batch handler on consensus blocks. To take advantage of this feature, a squid processor must- have a node RPC endpoint as one of its data sources and
- use a
Databasewith unfinalized blocks support (e.g.TypeormDatabase) in itsprocessor.run()call, and - not disable RPC ingestion explicitly with
setRpcDataIngestionSettings(\{ disabled: true \}).
setFinalityConfirmations() setting
chain_getFinalizedHead() RPC method
Database to adjust its state. The Database then must roll back the changes made due to orphaned blocks and apply the new changes. With this, the state of the Database reflects the current blockchain consensus at all times.
