Solana Head Detection: slotSubscribe (#772)
* Implement Solana head detection strategies with metrics tracking and testing * Add benchmark tests for Solana BlockSubscribe and SlotSubscribe strategies * Implement metrics logging and strategy configuration for Solana head detection * Add metrics logging and comparison for SLOT_SUBSCRIBE strategy * Refactor SolanaChainSpecificTest: Consolidate tests for slotSubscribe strategy, remove BlockSubscribe tests, and enhance caching logic. Delete SolanaStrategyBenchmark for performance comparison. * add synthetic parentHash, improve tests * Fix linter * Optimize Solana getLatestBlock to use single getEpochInfo call Replace two separate RPC calls (getSlot + getBlockHeight) with a single getEpochInfo call that returns both absoluteSlot and blockHeight * Enhance height estimation logic in SolanaChainSpecific: Implement optimistic height estimation and improve error handling for RPC failures. Update tests to validate new behavior. * Refactor height verification in SolanaChainSpecific: Replace getBlockHeight with getEpochInfo for improved efficiency and accuracy in height estimation. Update logic to handle actual slot and height retrieval.
This commit is contained in:
Reference in New Issue
Block a user