Skip to content

Commit

Permalink
added back the assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Oct 24, 2024
1 parent 3a4aeb5 commit 7bd28ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/lib/dal/src/consensus/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ impl ProtoFmt for Payload {
}

fn build(&self) -> Self::Proto {
if self.protocol_version.is_pre_gateway() {
assert_eq!(
self.pubdata_params, PubdataParams::default(),
"BUG DETECTED: pubdata_params should have the default value in pre-gateway protocol_version"
);
}
let mut x = Self::Proto {
protocol_version: Some((self.protocol_version as u16).into()),
hash: Some(self.hash.as_bytes().into()),
Expand Down

0 comments on commit 7bd28ba

Please sign in to comment.