Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit d0c2514

Browse files
jsmitchellpeterschwarz
authored andcommitted
Raise block failure instead of error on batch permission failure
Signed-off-by: James Mitchell <mitchell@bitwise.io>
1 parent 1594dcb commit d0c2514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/src/journal/block_validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl BlockValidation for PermissionValidation {
675675
format!("During permission check of block ({}, {}), unable to read permissions: {}",
676676
&block.header_signature, block.block_num, err))
677677
})? {
678-
return Err(ValidationError::BlockValidationError(
678+
return Err(ValidationError::BlockValidationFailure(
679679
format!("Block {} failed permission verification: batch {} signer is not authorized",
680680
&block.header_signature,
681681
batch_id)));

0 commit comments

Comments
 (0)