From 254958f1716cb5670322e0a6d55735346c7ac453 Mon Sep 17 00:00:00 2001 From: "Paul H. Liu" Date: Sun, 27 Oct 2024 19:19:53 -0700 Subject: [PATCH] Add TODOs for error logging --- rs/bitcoin/kyt/src/fetch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rs/bitcoin/kyt/src/fetch.rs b/rs/bitcoin/kyt/src/fetch.rs index 684bb79afd2..6a38fe97144 100644 --- a/rs/bitcoin/kyt/src/fetch.rs +++ b/rs/bitcoin/kyt/src/fetch.rs @@ -225,6 +225,7 @@ pub trait FetchEnv { state::set_fetched_address(txid, index, address.clone()); } else { // This error shouldn't happen unless blockdata is corrupted. + // TODO(XC-205): log this error return CheckTransactionIrrecoverableError::InvalidTransaction( format!( "Tx {} vout {} has no address, but is vin {} of tx {}", @@ -262,6 +263,7 @@ pub trait FetchEnv { state::set_fetched_address(txid, index, address.clone()); } else { // This error shouldn't happen unless blockdata is corrupted. + // TODO(XC-205): log this error error = Some( CheckTransactionIrrecoverableError::InvalidTransaction(format!( "Tx {} vout {} has no address, but is vin {} of tx {}",