Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic teal #2126

Merged
merged 19 commits into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
make dry run test closer to reality
  • Loading branch information
jannotti committed May 7, 2021
commit a7346a31698718fb7887456c25f2fc59cef6d788
5 changes: 3 additions & 2 deletions daemon/algod/api/server/v2/dryrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@ func init() {

// legder requires proto string and proto params set
var proto config.ConsensusParams
proto.LogicSigVersion = 2
proto.LogicSigMaxCost = 1000
proto.LogicSigVersion = 4
proto.LogicSigMaxCost = 20000
proto.MaxAppProgramCost = 700
proto.MaxAppKeyLen = 64
proto.MaxAppBytesValueLen = 64

Expand Down
2 changes: 1 addition & 1 deletion data/transactions/logic/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ func (cx *evalContext) step() {
}
cx.cost += deets.Cost
if cx.cost > cx.budget() {
cx.err = fmt.Errorf("%3d %s budget exceeded", cx.pc, spec.Name)
cx.err = fmt.Errorf("budget of %d exceeded at pc=%d, executing %s", cx.budget(), cx.pc, spec.Name)
return
}
spec.op(cx)
Expand Down