From 819724c36015a3a1161047cd714a0558d2d6cc33 Mon Sep 17 00:00:00 2001 From: aniketfuryrocks Date: Sun, 5 Feb 2023 14:29:25 +0530 Subject: [PATCH] fix get_latest_blockhash --- src/block_store.rs | 4 ++-- src/bridge.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/block_store.rs b/src/block_store.rs index b9bd44c0..800d2cdc 100644 --- a/src/block_store.rs +++ b/src/block_store.rs @@ -60,9 +60,9 @@ impl BlockStore { pub fn get_latest_blockhash(&self, commitment_config: CommitmentConfig) -> Arc> { if commitment_config.is_finalized() { - self.latest_confirmed_blockhash.clone() - } else { self.latest_finalized_blockhash.clone() + } else { + self.latest_confirmed_blockhash.clone() } } diff --git a/src/bridge.rs b/src/bridge.rs index df15ddfd..92e84134 100644 --- a/src/bridge.rs +++ b/src/bridge.rs @@ -75,6 +75,7 @@ impl LiteBridge { } /// List for `JsonRpc` requests + #[allow(clippy::too_many_arguments)] pub async fn start_services( mut self, http_addr: T,