PT-167701356 split store #608

Merged
zxq9 merged 2 commits from PT-167701356-split-store into master 2019-08-06 19:27:18 +09:00
zxq9 commented 2019-08-06 17:36:33 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

PT-167701356

Change compilation of the init function in FATE. Now generates a new function INIT that writes the state instead of returning it. The create contract transaction calls this function instead of init (unbeknownst to the user; the calldata still has init). See aeternity/aeternity#2619 for this.

The reason for this is to allow the compiler to decide the layout of the store. Currently it writes the entire state to state register 0, but in the future it can split up the state over multiple registers without requiring any changes to the VM.

*Created by: UlfNorell* [PT-167701356](https://www.pivotaltracker.com/story/show/167701356) Change compilation of the `init` function in FATE. Now generates a new function `INIT` that writes the state instead of returning it. The create contract transaction calls this function instead of `init` (unbeknownst to the user; the calldata still has `init`). See aeternity/aeternity#2619 for this. The reason for this is to allow the compiler to decide the layout of the store. Currently it writes the entire state to state register 0, but in the future it can split up the state over multiple registers without requiring any changes to the VM.
zxq9 commented 2019-08-06 19:19:49 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

*Created by: hanssv* **Review:** Approved
zxq9 commented 2019-08-06 19:27:10 +09:00 (Migrated from gitlab.com)

Created by: ThomasArts

Review: Approved

*Created by: ThomasArts* **Review:** Approved
zxq9 commented 2019-08-06 19:27:18 +09:00 (Migrated from gitlab.com)

Merged by: UlfNorell at 2019-08-06 10:27:18 UTC

*Merged by: UlfNorell at 2019-08-06 10:27:18 UTC*
Sign in to join this conversation.
No description provided.