Skip to content

Commit

Permalink
Update BlockFailureReason (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Sep 11, 2023
1 parent ba7439c commit 4789f3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sdk/src/types/api/core/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,16 @@ pub enum TransactionState {
pub enum BlockFailureReason {
/// The block is too old to issue.
TooOldToIssue = 1,
/// The block's parents are too old.
ParentsTooOld = 2,
/// The block failed at the booker.
FailedAtBooker = 3,
/// One of the block's parents is too old.
ParentTooOld = 2,
/// One of the block's parents does not exist.
ParentDoesNotExist = 3,
/// One of the block's parents is invalid.
ParentInvalid = 4,
/// The block is dropped due to congestion.
DroppedDueToCongestion = 4,
DroppedDueToCongestion = 5,
/// The block is invalid.
Invalid = 5,
Invalid = 6,
}

/// Response of GET /api/core/v3/blocks/{blockId}/metadata.
Expand Down

0 comments on commit 4789f3f

Please sign in to comment.