Skip to content

Commit

Permalink
chore: regenerate flatbuffers verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Apr 8, 2019
1 parent 67b3140 commit 2fb9ac6
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions protocol/src/protocol_generated_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1598,15 +1598,6 @@ pub mod ckb {
}
}

if Self::VT_CELLBASE_ID as usize + flatbuffers::SIZE_VOFFSET
<= vtab_num_bytes
{
let voffset = vtab.get(Self::VT_CELLBASE_ID) as usize;
if voffset > 0 && object_inline_num_bytes - voffset < 32 {
return Err(Error::OutOfBounds);
}
}

if Self::VT_UNCLES_HASH as usize + flatbuffers::SIZE_VOFFSET
<= vtab_num_bytes
{
Expand Down Expand Up @@ -2800,21 +2791,6 @@ pub mod ckb {
}
}

if Self::VT_CELLBASE as usize + flatbuffers::SIZE_VOFFSET
<= vtab_num_bytes
{
let voffset = vtab.get(Self::VT_CELLBASE) as usize;
if voffset > 0 {
if voffset + 4 > object_inline_num_bytes {
return Err(Error::OutOfBounds);
}

if let Some(f) = self.cellbase() {
f.verify()?;
}
}
}

if Self::VT_PROPOSAL_TRANSACTIONS as usize + flatbuffers::SIZE_VOFFSET
<= vtab_num_bytes
{
Expand Down

0 comments on commit 2fb9ac6

Please sign in to comment.