(kind: EffectReceiptKind)
| 4592 | } |
| 4593 | |
| 4594 | fn receipt_kind_order(kind: EffectReceiptKind) -> u8 { |
| 4595 | match kind { |
| 4596 | EffectReceiptKind::Applied => 0, |
| 4597 | EffectReceiptKind::Recovered => 1, |
| 4598 | EffectReceiptKind::RolledBack => 2, |
| 4599 | EffectReceiptKind::LeaseRejected => 3, |
| 4600 | EffectReceiptKind::Verified => 4, |
| 4601 | } |
| 4602 | } |
| 4603 | |
| 4604 | fn sole_recovery_parent(recovery: &Operation) -> Result<OperationId, RepositoryError> { |
| 4605 | match recovery.payload().parents.as_slice() { |