From 7d7b9e16c4f9cdd2bf11cff3b6894cb505478f20 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Sun, 31 Mar 2024 11:39:45 +0900 Subject: [PATCH] Add missing error handling: `LedgerError::ParentNotFound` --- nomos-services/cryptarchia-consensus/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nomos-services/cryptarchia-consensus/src/lib.rs b/nomos-services/cryptarchia-consensus/src/lib.rs index 4fbea2ca..709b7054 100644 --- a/nomos-services/cryptarchia-consensus/src/lib.rs +++ b/nomos-services/cryptarchia-consensus/src/lib.rs @@ -503,7 +503,8 @@ where cryptarchia = new_state; } - Err(Error::Consensus(cryptarchia_engine::Error::ParentMissing(parent))) => { + Err(Error::Ledger(cryptarchia_ledger::LedgerError::ParentNotFound(parent))) + | Err(Error::Consensus(cryptarchia_engine::Error::ParentMissing(parent))) => { tracing::debug!("missing parent {:?}", parent); // TODO: request parent block }