fix get_latest_blockhash
This commit is contained in:
parent
2ec0fc06af
commit
819724c360
|
@ -60,9 +60,9 @@ impl BlockStore {
|
|||
|
||||
pub fn get_latest_blockhash(&self, commitment_config: CommitmentConfig) -> Arc<RwLock<String>> {
|
||||
if commitment_config.is_finalized() {
|
||||
self.latest_confirmed_blockhash.clone()
|
||||
} else {
|
||||
self.latest_finalized_blockhash.clone()
|
||||
} else {
|
||||
self.latest_confirmed_blockhash.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ impl LiteBridge {
|
|||
}
|
||||
|
||||
/// List for `JsonRpc` requests
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub async fn start_services<T: ToSocketAddrs + std::fmt::Debug + 'static + Send + Clone>(
|
||||
mut self,
|
||||
http_addr: T,
|
||||
|
|
Loading…
Reference in New Issue