Skip to content

Commit

Permalink
Update daemon/algod/api/server/v2/handlers.go
Browse files Browse the repository at this point in the history
Co-authored-by: John Jannotti <[email protected]>
  • Loading branch information
scholtz and jannotti authored Oct 2, 2024
1 parent f2995f7 commit 155a214
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 1MB
const MaxTealSourceBytes = 1_000_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

Check failure on line 68 in daemon/algod/api/server/v2/handlers.go

View workflow job for this annotation

GitHub Actions / reviewdog-errors

[Lint Errors] reported by reviewdog 🐶 File is not `gofmt`-ed with `-s` (gofmt) Raw Output: daemon/algod/api/server/v2/handlers.go:68: File is not `gofmt`-ed with `-s` (gofmt) 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 155a214

Please sign in to comment.