Skip to content

Commit

Permalink
Add TODOs for error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ninegua committed Oct 28, 2024
1 parent 6594a98 commit 254958f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rs/bitcoin/kyt/src/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}",
Expand Down Expand Up @@ -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 {}",
Expand Down

0 comments on commit 254958f

Please sign in to comment.