Skip to content

Commit

Permalink
API: MaxTealSourceBytes to 512 kb (algorand#6068)
Browse files Browse the repository at this point in the history
Co-authored-by: John Jannotti <[email protected]>
Co-authored-by: cce <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent 39f7485 commit 078aafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/algod/api/server/v2/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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. We have some indication that real TEAL programs with comments are about 20 times bigger than the bytecode they produce, and we may soon allow 16,000 byte logicsigs, implying a maximum of 320kb. Let's call it half a meg for a little room to spare.
const MaxTealSourceBytes = 512 * 1024

// MaxTealDryrunBytes sets a size limit for dryrun requests
// With the ability to hold unlimited assets DryrunRequests can
Expand Down

0 comments on commit 078aafe

Please sign in to comment.