Add missing error handling: `LedgerError::ParentNotFound`
This commit is contained in:
parent
7e4d00cc78
commit
7d7b9e16c4
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue