blockworks-foundation / lite-rpc

This is a solana lite rpc which optimizes sending transactions and confirming transactions strategies.
GNU Affero General Public License v3.0
199 stars 55 forks source link

no blocks via geyser / yellowstone-rpc #307

Closed grooviegermanikus closed 9 months ago

grooviegermanikus commented 9 months ago

Problem

LiteRPC fails to receive any blocks from geyser. Other subscriptions work though.

ERROR solana_lite_rpc_cluster_endpoints::grpc_multiplex: block or block meta stream stopped restaring blocks

grooviegermanikus commented 9 months ago

Double-check yellowstone plugin config value blocks -> account_include_any must be true

  "blocks": {
    "max": 1,
    "account_include_max": 10,
    "account_include_any": true,
    "account_include_reject": ["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"],
    "include_transactions": true,
    "include_accounts" : false,
    "include_entries" : false
  }
grooviegermanikus commented 9 months ago

relates to PR

grooviegermanikus commented 9 months ago

use this log levels for debugging:

RUST_LOG=info,solana_lite_rpc_cluster_endpoints=trace,geyser_grpc_connector=debug,lite_rpc=debug

Example Output:

2024-01-30T06:54:00.640246Z TRACE solana_lite_rpc_cluster_endpoints::grpc_subscription: GRPC Ping    
2024-01-30T06:54:00.660775Z TRACE solana_lite_rpc_cluster_endpoints::grpc_subscription: GRPC Ping    
2024-01-30T06:54:00.759625Z TRACE solana_lite_rpc_cluster_endpoints::grpc_multiplex: got processed block 249821851 with blockhash SFuPEnRHztizqLxq9DUVzkpbkG7B5i2pzyUmWFehfLQ    
2024-01-30T06:54:01.053229Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got confirmed blockmeta 249821850 with blockhash BrGkgKybhtp1EF7ktFw4rJ6ymDrg8pQ9ZxNcbtAXLYuQ    
2024-01-30T06:54:01.057424Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got confirmed blockmeta 249821851 with blockhash SFuPEnRHztizqLxq9DUVzkpbkG7B5i2pzyUmWFehfLQ    
2024-01-30T06:54:01.116252Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got finalized blockmeta 249821804 with blockhash 33YQLXGzgrKvDypicHFuHEhrBA6AgCe8rxrwTSwmVLnX    
2024-01-30T06:54:01.118018Z  INFO lite_rpc: Got finalized block: 249821804    
2024-01-30T06:54:01.264516Z  INFO solana_lite_rpc_core::network_utils: GSO force-disabled? false    
2024-01-30T06:54:01.286064Z  INFO solana_lite_rpc_services::metrics_capture: Capturing Metrics    
2024-01-30T06:54:01.286390Z  INFO lite_rpc::bridge: HTTP Server started at "0.0.0.0:8890"    
2024-01-30T06:54:01.286406Z  INFO lite_rpc::bridge: Websocket Server started at "0.0.0.0:8891"    
2024-01-30T06:54:01.289475Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got finalized blockmeta 249821805 with blockhash DVJKa1XYDk1w3obBgJ6sKbYshvpYqQtFoJEAqdnAxCt8    
2024-01-30T06:54:02.041172Z TRACE solana_lite_rpc_cluster_endpoints::grpc_multiplex: got processed block 249821852 with blockhash G7GDkGpowUqtinre4SuuungdgCpraxQrXbZtFheUuFAk    
2024-01-30T06:54:02.043039Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got confirmed blockmeta 249821852 with blockhash G7GDkGpowUqtinre4SuuungdgCpraxQrXbZtFheUuFAk    
2024-01-30T06:54:02.043146Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: confirmed blocks not found : 3    
2024-01-30T06:54:02.043716Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got finalized blockmeta 249821806 with blockhash 2SrfTcYfPRP7Jk2KRHqq8TJb4t3Lzx19yVBJw2LStG26    
2024-01-30T06:54:02.083768Z TRACE solana_lite_rpc_cluster_endpoints::grpc_multiplex: got processed block 249821853 with blockhash 4y4nb4VhUvgpgpaCVGE7V4fuR8BPANSVtyLs6pmfJTM2    
2024-01-30T06:54:02.093935Z DEBUG solana_lite_rpc_cluster_endpoints::grpc_multiplex: got finalized blockmeta 249821807 with blockhash GJUzF5mBYVqAXPYevtMtwrLrxFTvScZyoDz51oHVEXA6    
pelaricoaus commented 3 weeks ago

do you need to additionally install the yellowstone plugin? right now experiencing this error, however just using the lite-rpc deps which are yellowstone-grpc-proto and yellowstone-grpc-client, neither of these have the config file? so needing to know whether to additionally manually install the yellowstone full repo into the same directory, or whether we need to make a tweak inside the existing deps that come with the current lite-rpc installation?