Skip to content

Commit

Permalink
Minor bug, subscribing to processed blocks instead of confirmed (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Jan 22, 2024
1 parent 3139970 commit 0fa22d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster-endpoints/src/grpc_multiplex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn create_grpc_multiplex_block_stream(
grpc_sources: &Vec<GrpcSourceConfig>,
confirmed_block_sender: UnboundedSender<ProducedBlock>,
) -> Vec<AnyhowJoinHandle> {
let commitment_config = CommitmentConfig::confirmed();
let commitment_config = CommitmentConfig::processed();

let mut tasks = Vec::new();
let mut streams = vec![];
Expand All @@ -65,7 +65,7 @@ fn create_grpc_multiplex_block_stream(
grpc_source.grpc_addr.clone(),
grpc_source.grpc_x_token.clone(),
block_sender,
yellowstone_grpc_proto::geyser::CommitmentLevel::Confirmed,
yellowstone_grpc_proto::geyser::CommitmentLevel::Processed,
));
streams.push(block_reciever)
}
Expand Down Expand Up @@ -194,7 +194,7 @@ pub fn create_grpc_multiplex_blocks_subscription(
}
} else {
confirmed_block_not_yet_processed.insert(blockhash.clone());
log::info!("confirmed blocks not found : {}", confirmed_block_not_yet_processed.len());
log::debug!("confirmed blocks not found : {}", confirmed_block_not_yet_processed.len());
}
},
meta_finalized = finalized_blockmeta_stream.next() => {
Expand Down

0 comments on commit 0fa22d6

Please sign in to comment.