Skip to content

Commit

Permalink
Simulate: Properly handle failing clear state programs (#5842)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Dec 8, 2023
1 parent b37fadb commit 686912b
Show file tree
Hide file tree
Showing 22 changed files with 1,365 additions and 1,052 deletions.
8 changes: 8 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4353,6 +4353,14 @@
"type": "string",
"format": "byte"
},
"clear-state-rollback": {
"description": "If true, indicates that the clear state program failed and any persistent state changes it produced should be reverted once the program exits.",
"type": "boolean"
},
"clear-state-rollback-error": {
"description": "The error message explaining why the clear state program failed. This field will only be populated if clear-state-rollback is true and the failure was due to an execution error.",
"type": "string"
},
"logic-sig-trace": {
"description": "Program trace that contains a trace of opcode effects in a logic sig.",
"type": "array",
Expand Down
8 changes: 8 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,14 @@
},
"type": "array"
},
"clear-state-rollback": {
"description": "If true, indicates that the clear state program failed and any persistent state changes it produced should be reverted once the program exits.",
"type": "boolean"
},
"clear-state-rollback-error": {
"description": "The error message explaining why the clear state program failed. This field will only be populated if clear-state-rollback is true and the failure was due to an execution error.",
"type": "string"
},
"inner-trace": {
"description": "An array of SimulationTransactionExecTrace representing the execution trace of any inner transactions executed.",
"items": {
Expand Down
56 changes: 29 additions & 27 deletions daemon/algod/api/server/v2/generated/data/routes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 686912b

Please sign in to comment.