From 54aa43f5bcad5fd819a7f157a2aa2eab1805a9a0 Mon Sep 17 00:00:00 2001 From: Tim Zakian <2895723+tzakian@users.noreply.github.com> Date: Wed, 3 Apr 2024 10:51:59 -0700 Subject: [PATCH] [simple] Bump bounds (#17028) ## Description Bumps the bounds up a bit higher ## Test Plan Manually tested --- crates/sui-types/src/object/bounded_visitor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sui-types/src/object/bounded_visitor.rs b/crates/sui-types/src/object/bounded_visitor.rs index aae81750569c0..ec771bf477869 100644 --- a/crates/sui-types/src/object/bounded_visitor.rs +++ b/crates/sui-types/src/object/bounded_visitor.rs @@ -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 {