Skip to content

Commit

Permalink
todo comment in the realtime scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
roberts-pumpurs committed Dec 20, 2024
1 parent ed2eaea commit 750b133
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ pub(crate) async fn process_realtime_logs(
let client =
solana_client::nonblocking::pubsub_client::PubsubClient::new(config.solana_ws.as_str())
.await?;

// todo we have to also subscribe to the gas service events (new websocket stream running in
// parallel).
// Reason for parallel stream: https://solana.com/docs/rpc/websocket/logssubscribe :
// "The mentions field currently only supports one Pubkey string per method call. Listing
// additional addresses will result in an error."

let (ws_stream, _unsubscribe) = client
.logs_subscribe(
RpcTransactionLogsFilter::Mentions(vec![gateway_program_address.to_string()]),
Expand Down

0 comments on commit 750b133

Please sign in to comment.