Skip to content

Commit

Permalink
[simple] Bump bounds (MystenLabs#17028)
Browse files Browse the repository at this point in the history
## Description 

Bumps the bounds up a bit higher

## Test Plan 

Manually tested
  • Loading branch information
tzakian authored Apr 3, 2024
1 parent cf9034f commit 54aa43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sui-types/src/object/bounded_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pub enum Error {
OutOfBudget,
}

/// Initial budget for deserialization -- we're okay to spend an extra ~350KiB on types and field
/// Initial budget for deserialization -- we're okay to spend an extra ~1MiB on types and field
/// information per value.
///
/// Bounded deserialization is intended for use outside of the validator, and so uses a fixed bound,
/// rather than one that is configured as part of the protocol.
const MAX_BOUND: usize = 350 * 1024;
const MAX_BOUND: usize = 1024 * 1024;

impl BoundedVisitor {
fn new(bound: usize) -> Self {
Expand Down

0 comments on commit 54aa43f

Please sign in to comment.