Add missing error handling: `LedgerError::ParentNotFound`

This commit is contained in:
Youngjoon Lee 2024-03-31 11:39:45 +09:00
parent 7e4d00cc78
commit 7d7b9e16c4
No known key found for this signature in database
GPG Key ID: 7E8EE3EC8D5CEBA2
1 changed files with 2 additions and 1 deletions

View File

@ -503,7 +503,8 @@ where
cryptarchia = new_state; 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); tracing::debug!("missing parent {:?}", parent);
// TODO: request parent block // TODO: request parent block
} }