Minor bug, subscribing to processed blocks instead of confirmed (#295)

This commit is contained in:
galactus 2024-01-22 10:54:39 +01:00 committed by GitHub
parent 33cca71d49
commit 0c5aa196c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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![];
@ -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)
}
@ -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() => {