blockhash polling finalized

This commit is contained in:
Maximilian Schneider 2023-04-23 17:57:44 +02:00
parent 49829d39c5
commit 13ddf85330
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ pub async fn main() -> anyhow::Result<()> {
// continuosly fetch blockhash
let rpc_client = Arc::new(RpcClient::new_with_commitment(
json_rpc_url.to_string(),
CommitmentConfig::confirmed(),
CommitmentConfig::finalized(),
));
let exit_signal = Arc::new(AtomicBool::new(false));
let latest_blockhash = get_latest_blockhash(&rpc_client.clone()).await;