apollo_propeller: add reconstruction error type#11052
Conversation
guy-starkware
left a comment
There was a problem hiding this comment.
@guy-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noamsp-starkware, @ShahakShama, and @sirandreww-starkware).
crates/apollo_propeller/src/types.rs line 199 at r1 (raw file):
} } }
Anyway if you want you should change all of these...
Code quote:
impl std::fmt::Display for ReconstructionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ReconstructionError::ErasureReconstructionFailed(msg) => {
write!(f, "Erasure reconstruction failed: {}", msg)
}
ReconstructionError::MismatchedMessageRoot => {
write!(f, "Mismatched message root, the publisher is most likely malicious")
}
ReconstructionError::UnequalShardLengths => {
write!(f, "Unequal shard lengths, the shards are most likely malicious")
}
ReconstructionError::MessagePaddingError => {
write!(f, "The message was padded incorrectly by the publisher")
}
}
}
}
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @guy-starkware, @noamsp-starkware, and @ShahakShama).
crates/apollo_propeller/src/types.rs line 199 at r1 (raw file):
Previously, guy-starkware wrote…
Anyway if you want you should change all of these...
same as previous PR (added a TODO and will do this later)
3429e4e to
6cfd5de
Compare
aef8cb9 to
24df536
Compare
guy-starkware
left a comment
There was a problem hiding this comment.
@guy-starkware reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware and @ShahakShama).
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama reviewed all commit messages and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noamsp-starkware and @sirandreww-starkware).
crates/apollo_propeller/src/types.rs line 184 at r2 (raw file):
} impl std::fmt::Display for ReconstructionError {
As before, remove these
6cfd5de to
b3f3c87
Compare
24df536 to
386dae9
Compare
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @guy-starkware, @noamsp-starkware, and @ShahakShama).
crates/apollo_propeller/src/types.rs line 184 at r2 (raw file):
Previously, ShahakShama wrote…
As before, remove these
Done.
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).
b3f3c87 to
fc56114
Compare
386dae9 to
269fba2
Compare
269fba2 to
26a792b
Compare
fc56114 to
4033098
Compare
4033098 to
dfd8ae8
Compare
26a792b to
1de1418
Compare
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).
3d0d680

No description provided.