From f2995f7afdbb3fa096e29a2c2e4f81f3cd0c7994 Mon Sep 17 00:00:00 2001 From: Ludovit Scholtz Date: Sat, 13 Jul 2024 15:43:43 +0200 Subject: [PATCH] MaxTealSourceBytes to 1M #6031 MaxTealSourceBytes to 1M #6031 --- daemon/algod/api/server/v2/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/algod/api/server/v2/handlers.go b/daemon/algod/api/server/v2/handlers.go index 4e233a8b20..f400151177 100644 --- a/daemon/algod/api/server/v2/handlers.go +++ b/daemon/algod/api/server/v2/handlers.go @@ -64,8 +64,8 @@ import ( // MaxTealSourceBytes sets a size limit for TEAL source programs for requests // Max TEAL program size is currently 8k // but we allow for comments, spacing, and repeated consts -// in the source TEAL, so we allow up to 200KB -const MaxTealSourceBytes = 200_000 +// in the source TEAL, so we allow up to 1MB +const MaxTealSourceBytes = 1_000_000 // MaxTealDryrunBytes sets a size limit for dryrun requests // With the ability to hold unlimited assets DryrunRequests can