From 5671c8a0bc7f5e42157fcde58b332e85937e0428 Mon Sep 17 00:00:00 2001 From: ClydeWallace22 <48610606+BrandtH22@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:08:02 -0700 Subject: [PATCH] Update optimization.md --- docs/optimization.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/optimization.md b/docs/optimization.md index 4fd6a577..6a3d0057 100644 --- a/docs/optimization.md +++ b/docs/optimization.md @@ -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.