From b9f63a1c3b665db0ce5a7f58dec2e428eaed4d10 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Thu, 8 Feb 2024 17:21:57 +0100 Subject: [PATCH] temp commit --- .github/workflows/ci.yml | 4 ++-- mithril-common/src/chain_observer/pallas_observer.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac3dbd770ab..51be308c089 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -268,11 +268,11 @@ jobs: strategy: fail-fast: false matrix: - mode: ["std"] + mode: ["std", "p2p"] era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }} cardano_node_version: ["8.7.3"] hard_fork_latest_era_at_epoch: [0,10,100] - run_id: ["#1","#2"] + run_id: ["#1","#2","#3"] extra_args: [""] include: diff --git a/mithril-common/src/chain_observer/pallas_observer.rs b/mithril-common/src/chain_observer/pallas_observer.rs index f8437b05bff..221bdaaf539 100644 --- a/mithril-common/src/chain_observer/pallas_observer.rs +++ b/mithril-common/src/chain_observer/pallas_observer.rs @@ -119,7 +119,7 @@ impl PallasChainObserver { #[async_trait] impl ChainObserver for PallasChainObserver { async fn get_current_epoch(&self) -> Result, ChainObserverError> { - let mut client = self.get_client().await?; + /* let mut client = self.get_client().await?; let epoch = self.get_epoch(client.statequery()).await?; @@ -127,7 +127,9 @@ impl ChainObserver for PallasChainObserver { client.abort().await; - Ok(Some(Epoch(epoch as u64))) + Ok(Some(Epoch(epoch as u64))) */ + let fallback = self.get_fallback(); + fallback.get_current_epoch().await } async fn get_current_datums(