@@ -4,47 +4,10 @@ description: Step-by-step guide to migrate Light Protocol programs from v1 to v2
44sidebarTitle : V1 to V2 migration
55---
66
7- ## V2 changes
8-
9- <table >
10- <thead >
11- <tr >
12- <th ></th >
13- <th >v1</th >
14- <th >v2</th >
15- <th >Improvement</th >
16- </tr >
17- </thead >
18- <tbody >
19- <tr >
20- <td >Merkle tree type</td >
21- <td >Concurrent</td >
22- <td >Batched</td >
23- <td ></td >
24- </tr >
25- <tr >
26- <td >State tree depth</td >
27- <td >26 (~ 67M leaves)</td >
28- <td >32 (~ 4B leaves)</td >
29- <td ></td >
30- </tr >
31- <tr >
32- <td >Address tree depth</td >
33- <td >26</td >
34- <td >40</td >
35- <td ></td >
36- </tr >
37- <tr >
38- <td >Address tree accounts</td >
39- <td >Separate tree + queue</td >
40- <td >Single batch tree</td >
41- <td ></td >
42- </tr >
43- </tbody >
44- </table >
457
468<Note >
47- V2 is the recommended version for new programs. V1 remains supported for existing deployments.
9+ V2 reduces CU consumption by up to 70% and is the recommended version for new programs.
10+ V1 remains supported for existing deployments.
4811</Note >
4912
5013<Tabs >
@@ -286,23 +249,21 @@ let new_address_params = instruction_data
286249</Tab >
287250</Tabs >
288251
252+ ## V2 Improvements
289253
254+ | | v1 | v2 |
255+ | ---------------------| ------------------------------------------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------|
256+ | Merkle tree type | Concurrent | Batched |
257+ | State tree depth | 26 (~ 67M leaves) | 32 (~ 4B leaves) |
258+ | Address tree depth | 26 | 40 |
259+ | Address tree accounts| Separate tree + queue | Single batch tree |
290260
291- ## Next steps
261+ ## View Program Examples
292262
293- <CardGroup >
294263<Card
295- title = " Create compressed accounts"
296- icon = " chevron-right"
297- color = " #0066ff"
298- href = " /compressed-pdas/guides/how-to-create-compressed-accounts"
299- horizontal
300- />
301- <Card
302- title = " View program examples"
264+ title = " Program examples"
303265 icon = " chevron-right"
304266 color = " #0066ff"
305267 href = " /compressed-pdas/program-examples"
306268 horizontal
307269/>
308- </CardGroup >
0 commit comments