Skip to content

Commit

Permalink
Merge pull request #248 from Chia-Network/BrandtH22-clsp-conditions-list
Browse files Browse the repository at this point in the history
Add link to full conditions list
  • Loading branch information
BrandtH22 authored Nov 27, 2023
2 parents 8fb8c49 + 5671c8a commit 04ee483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ It is possible to optimize the cost of your programs by making certain changes a

## Conditions

Check out the [full conditions list](https://docs.chia.net/conditions/#list) for detailed information on conditions and their use.

If you are writing a puzzle for the Chia blockchain, minimize the number of spends and conditions used. Specifically, the `CREATE_COIN`, `AGG_SIG_ME`, and `AGG_SIG_UNSAFE` conditions have a massive cost associated with them. This is because they are an expensive operation to perform on the node.

For example, instead of creating a coin in each spend, you can aggregate them all into a single coin created from one of the spends. The other coins just contribute to the overall value.
Expand Down

0 comments on commit 04ee483

Please sign in to comment.