Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions daemon/algod/api/server/v2/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ import (
"github.com/algorand/go-codec/codec"
)

const maxTealSourceBytes = 1e5
const maxTealDryrunBytes = 1e5
// max compiled teal program is currently 8k
// but we allow for comments, spacing, and repeated consts
// in the source teal, allow up to 200kb
const maxTealSourceBytes = 200_000

// With the ability to hold unlimited assets DryrunRequests can
// become quite large, allow up to 1mb
const maxTealDryrunBytes = 1_000_000

// Handlers is an implementation to the V2 route handler interface defined by the generated code.
type Handlers struct {
Expand Down